Advertisement
Guest User

Untitled

a guest
Jul 1st, 2015
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. a = open('file.txt').readlines()
  2. b = iter(a)
  3.  
  4. while True:
  5. try:
  6. print(next(b))
  7. except:
  8. b = iter(a)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement