Skip to content

Instantly share code, notes, and snippets.

@mikejoyceio
Last active August 29, 2015 14:15
Show Gist options
  • Save mikejoyceio/f92559ce51f11cca3fcd to your computer and use it in GitHub Desktop.
Save mikejoyceio/f92559ce51f11cca3fcd to your computer and use it in GitHub Desktop.
Pack iterables into a tuple
def combo(itr1, itr2):
list = []
count = 0
for _, item in enumerate(itr1):
tup = item, itr2[count]
list.append(tup)
count += 1
return list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment