rfmonk

itertools_repeat_izip.py

Jan 16th, 2014
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.12 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3.  
  4. from itertools import *
  5.  
  6. for i, s in izip(count(), repeat('over-and-over', 5)):
  7.     print i, s
Advertisement
Add Comment
Please, Sign In to add comment