Skip to content

Instantly share code, notes, and snippets.

@szabgab
Created January 19, 2017 12:22
Show Gist options
  • Save szabgab/78566a7466fdbe6df2b2d0e6ebbd5a5b to your computer and use it in GitHub Desktop.
Save szabgab/78566a7466fdbe6df2b2d0e6ebbd5a5b to your computer and use it in GitHub Desktop.
combine
names = ["Foo", "Borg", "Earth"]
print(sorted(names))
print(sorted(names,key=len))
print(sorted(names, key=lambda x: x[1] ))
a = [
["Joe", 23],
["Mary", 78],
["Steffan", 100],
]
b = [
["Jane", 10],
["Joe", 50],
["Mary", 23],
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment