We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ce3eb2 commit 3ba6d96Copy full SHA for 3ba6d96
214/countdown.py
@@ -4,5 +4,8 @@ def countdown():
4
while True:
5
yield num
6
num -= 1
7
- if num < 1:
8
- raise StopIteration
+ if num == 100 or num == 0:
+ return
9
+
10
11
0 commit comments