Created
June 16, 2018 14:10
-
-
Save csharpforevermore/d73af6aed79fae34713b2790b90c6af0 to your computer and use it in GitHub Desktop.
Lambda functions in Python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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