Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from itertools import cycle
- n=50
- for x, y in enumerate(cycle(['a','b','c'])):
- x+=1
- print(f'{x} {y}')
- if x >= n:
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement