Lambda Functions¶
Let us get an overview of Lambda Functions in Python. They are also known as anonymous functions in other programming languages.
A lambda function is a function which does not have name associated with it.
It starts with the keyword
lambda
.Typically we have simple one liners as part of lambda functions.
There are restrictions while passing or creating lambda functions.
You cannot have return statement
Assignment operation is not allowed
Use lambda functions only when the functionality is simple and not used very often.