Skip to content

Instantly share code, notes, and snippets.

@schworer
Created September 17, 2012 21:47
Show Gist options
  • Save schworer/3739992 to your computer and use it in GitHub Desktop.
Save schworer/3739992 to your computer and use it in GitHub Desktop.
zip and enumerate
f = ('a', 'b', 'c')
g = ('d', 'e', 'f')
for i, (x, y) in enumerate(zip(f,g)):
print i, x, y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment