2 Answers
+ 1
The lambda keyword in Python provides a shortcut for declaring small anonymous functions. Lambda functions behave just like regular functions declared with the def keyword. They can be used whenever function objects are required.
For details:
https://dbader.org/blog/python-lambda-functions