Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import itertools
- acumulador = itertools.accumulate(range(10))
- print(next(acumulador))
- print(next(acumulador))
- print(next(acumulador))
- print(next(acumulador))
- print(next(acumulador))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement