We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f39789d commit 92cb6e0Copy full SHA for 92cb6e0
src/endless-stream.py
@@ -0,0 +1,7 @@
1
+def integers(n):
2
+ while True:
3
+ yield n
4
+ n += 1
5
+
6
+for value in integers(10):
7
+ print(value)
0 commit comments