Skip to content

Instantly share code, notes, and snippets.

@jrsa
Created September 21, 2018 23:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrsa/7aacd71b52c2cef9f2e6cdedb6a8b328 to your computer and use it in GitHub Desktop.
Save jrsa/7aacd71b52c2cef9f2e6cdedb6a8b328 to your computer and use it in GitHub Desktop.
from itertools import cycle
for i in cycle((0, 1, 2,)):
print i
escape_value += 1
if escape_value >= 10:
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment