Last active
August 29, 2015 14:15
-
-
Save mikejoyceio/f92559ce51f11cca3fcd to your computer and use it in GitHub Desktop.
Pack iterables into a tuple
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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