Skip to content

Instantly share code, notes, and snippets.

@Kush1101
Created September 24, 2020 13:22
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Kush1101/f0b4444d401685a172c78d5ddd5a2646 to your computer and use it in GitHub Desktop.
from itertools import cycle
count = 0
for i in cycle('ABC'):
print(i, end = ' ')
count += 1
if count == 6:
break
# OUTPUT
'''
A B C A B C
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment