Created
September 15, 2018 17:16
-
-
Save zinyosrim/c66ff2f718d1c0b4ca2e271e1d932787 to your computer and use it in GitHub Desktop.
Example zipping unzipping
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
seq1 = ['good', 'bad', 'ugly'] | |
seq2 = ['child', 'man', 'woman'] | |
zipped = zip(seq1, seq2) | |
starzipped = zip(*[seq1, seq2]) | |
for el in starzipped: print(el) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment