Skip to content

Instantly share code, notes, and snippets.

@Deep18-03
Created April 20, 2020 14:51
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 Deep18-03/07f93f001ce6cf7bb0caa907c0fa704c to your computer and use it in GitHub Desktop.
Save Deep18-03/07f93f001ce6cf7bb0caa907c0fa704c to your computer and use it in GitHub Desktop.
# #lambda function
minus=lambda x,y:x-y
print(minus(3,4))
print("\n")
a=[[1,14],[5,6],[2,18]]
a.sort(key=lambda x:x[1])
print(a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment