+ 5

How does lambda function work in Python?

28th Sep 2017, 6:07 AM
Ruzan
Ruzan - avatar
2 Answers
+ 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
28th Sep 2017, 7:00 AM
šŸ‘‘ Prometheus šŸ‡øšŸ‡¬
šŸ‘‘ Prometheus šŸ‡øšŸ‡¬ - avatar
+ 2
28th Sep 2017, 6:10 AM
Kartikey Sahu
Kartikey Sahu - avatar