Skip to content

Commit 1c4c67f

Browse files
authored
Update Day 1.md
1 parent a50c849 commit 1c4c67f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Status/Day 1.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,12 +188,11 @@ print(ans)
188188
---
189189
```python
190190
'''Solution by: minnielahoti
191+
Corrected by: TheNobleKnight
191192
'''
192193

193-
while True:
194194
try:
195195
num = int(input("Enter a number: "))
196-
break
197196
except ValueError as err:
198197
print(err)
199198

@@ -202,7 +201,7 @@ for item in range(num+1):
202201
if item == 0:
203202
continue
204203
else:
205-
dictio[item] = item * item
204+
dictio[item] = item * item
206205
print(dictio)
207206
```
208207
---

0 commit comments

Comments
 (0)