Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import itertools
- def contador(n):
- while True:
- yield n
- n += 1
- c = contador(0)
- for x in itertools.islice(c, 10, 20):
- print(x)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement