Skip to content

Instantly share code, notes, and snippets.

@csharpforevermore
Created June 16, 2018 14:10
Show Gist options
  • Save csharpforevermore/d73af6aed79fae34713b2790b90c6af0 to your computer and use it in GitHub Desktop.
Save csharpforevermore/d73af6aed79fae34713b2790b90c6af0 to your computer and use it in GitHub Desktop.
Lambda functions in Python
double = lambda x: x * 2
print(double(5))
# output: 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment