Skip to content

Instantly share code, notes, and snippets.

@corneliouzbett
Created March 17, 2019 19:52
Show Gist options
  • Save corneliouzbett/5102b59e781eda083d4ccbda5fbf6880 to your computer and use it in GitHub Desktop.
Save corneliouzbett/5102b59e781eda083d4ccbda5fbf6880 to your computer and use it in GitHub Desktop.
# A lambda function can take any number of arguments, but can only have one expression
x = lamda a,b,c : (a + b) * c
print(x(1,2,3))
# output = 9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment