Advertisement
Fhernd

acumulador.py

Jan 23rd, 2018
856
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. import itertools
  2.  
  3. acumulador = itertools.accumulate(range(10))
  4.  
  5. print(next(acumulador))
  6. print(next(acumulador))
  7. print(next(acumulador))
  8. print(next(acumulador))
  9. print(next(acumulador))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement