What is a lambda function in Python and when should you use it?
An anonymous function is known as a lambda function. This function can have any number of parameters but, can have just one statement.
Example:
1
2
a = lambda x,y : x+y
print(a(5, 6))
Output: 11