Skip to content

Instantly share code, notes, and snippets.

@cluelesscoder
Created December 4, 2012 20:09
Show Gist options
  • Save cluelesscoder/4208180 to your computer and use it in GitHub Desktop.
Save cluelesscoder/4208180 to your computer and use it in GitHub Desktop.
Enumerate and for loops
numbers = range(10)
for idx, y in enumerate(numbers):
if idx == 1:
continue
else:
print y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment