We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
assert
print
1 parent 5f55e6e commit c4f7967Copy full SHA for c4f7967
11_generators.py
@@ -4,6 +4,6 @@ def next_num(i):
4
5
iterator = next_num(10)
6
7
-print(next(iterator)) # 10
8
-print(next(iterator)) # 11
9
-print(next(iterator)) # 12
+assert next(iterator) == 10
+assert next(iterator) == 11
+assert next(iterator) == 12
0 commit comments