Last active
December 27, 2019 16:38
-
-
Save edenau/4a2b984cf78daae9fc8ba57a3b0a843b to your computer and use it in GitHub Desktop.
Python Zip 2
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
Eng = list(zip(engList, espList, numList)) | |
Eng.sort() # sort by engList | |
a, b, c = zip(*Eng) | |
print(a) | |
print(b) | |
print(c) | |
# ('one', 'two', 'zero') | |
# ('uno', 'dos', 'cero') | |
# (1, 2, 0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment