What is a lambda function?
Dinesh Beniwal
Select an image from your device to upload
A lambda function is a small anonymous function.A lambda function can take any number of arguments, but can only have one expression.
x = lambda a, b : a * bprint(x(5, 6))
x = lambda a, b : a * b
print(x(5, 6))
lambda function is a small anonymous function. it can take any number of arguments, but can only have one expression.