Files
Learn-Python-Programming-Th…/ch03/infinite.py
T
adii1823 8b802c5c62 ch03
2021-10-28 17:34:45 +05:30

9 lines
151 B
Python

from itertools import count
for n in count(5, 3):
if n > 20:
break
print(n, end=', ') # instead of newline, comma and space
print()