+ 5
How does lambda function work in Python?
2 ответов
+ 7
It is an anonymous function
You can create a lambda like:
lambda x:x+3
And store in a regular variable, like x
Then, doing:
x(3) calls the lambda returning 6
+ 2
Watch this video https://youtu.be/25ovCm9jKfA