You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Status/Day 1.md
+1-38Lines changed: 1 addition & 38 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,25 +103,7 @@ print fact(x)
103
103
print(shortFact(n))
104
104
105
105
```
106
-
-**Including Try and Except Blocks**
107
106
108
-
```python
109
-
#Solution by minnielahoti
110
-
111
-
whileTrue:
112
-
try:
113
-
num =int(input("Enter a number: "))
114
-
break
115
-
exceptValueErroras err:
116
-
print(err)
117
-
118
-
org = num
119
-
fact =1
120
-
while num:
121
-
fact = num * fact
122
-
num = num -1
123
-
124
-
print(f'the factorial of {org} is {fact}')
125
107
---
126
108
127
109
# Question 3
@@ -173,31 +155,12 @@ n = int(input())
173
155
ans={i : i*i for i inrange(1,n+1)}
174
156
print(ans)
175
157
```
176
-
-**Including Try and Except Blocks**
177
158
178
-
```python
179
-
#Solution by minnielahoti
180
-
181
-
whileTrue:
182
-
try:
183
-
num =int(input("Enter a number: "))
184
-
break
185
-
exceptValueErroras err:
186
-
print(err)
187
-
188
-
dictio =dict()
189
-
for item inrange(num+1):
190
-
if item ==0:
191
-
continue
192
-
else:
193
-
dictio[item] = item * item
194
-
195
-
print(dictio)
196
159
---
197
160
198
161
## Conclusion
199
162
200
-
**_These were the solved problems of day 1. The above problems are very easy for the basic syntex learners.I have shown some easy ways of coding in my solutions. Lets see how to face and attack new problems in the next day._**
163
+
**_These was the solved problems of day 1. The above problems are very easy for the basic syntex learners.I have shown some easy ways of coding in my solutions. Lets see how to face and attack new problems in the next day._**
201
164
202
165
[**_go to next day_**](https://github.com/darkprinx/100-plus-Python-programming-exercises-extended/blob/master/Status/Day%202.md"Next Day")
0 commit comments