Skip to content

Commit 92cb6e0

Browse files
committed
Add the starting version of the endless-stream.py file.
1 parent f39789d commit 92cb6e0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/endless-stream.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)