Advertisement
Bisix

siklus

Dec 10th, 2020
629
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. from itertools import cycle
  2.  
  3. n=50
  4.  
  5. for x, y in enumerate(cycle(['a','b','c'])):    
  6.     x+=1
  7.     print(f'{x} {y}')
  8.     if x >= n:
  9.         break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement