Skip to content

Instantly share code, notes, and snippets.

@edenau
Last active December 27, 2019 16:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edenau/4a2b984cf78daae9fc8ba57a3b0a843b to your computer and use it in GitHub Desktop.
Save edenau/4a2b984cf78daae9fc8ba57a3b0a843b to your computer and use it in GitHub Desktop.
Python Zip 2
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