Skip to content

Instantly share code, notes, and snippets.

@Kush1101
Created September 24, 2020 12:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kush1101/6fdb60d0b3251a73ada94b95a1093e44 to your computer and use it in GitHub Desktop.
Save Kush1101/6fdb60d0b3251a73ada94b95a1093e44 to your computer and use it in GitHub Desktop.
from itertools import count
for i in count(0,2):
print(i, end = " ")
if i==20:
break
# OUTPUT
'''
0 2 4 6 8 10 12 14 16 18 20
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment