Advertisement
Phr0zen_Penguin

for_itools_count.py - Infinite for Loop - itertools.count()

Aug 21st, 2016
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. ##
  2. # [for_itools_count.py]
  3. #
  4. # Infinite for loop (using itertools.count())
  5. ##
  6.  
  7. import itertools
  8.  
  9. for i in itertools.count():
  10.     print(i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement