What is lambda function?

Lambda function is an anonymous function that can have any number of parameters but, can have just one statement.

exp = lambda x,y : x**y
print(exp(3,2))

Output: 9

Leave a Reply

Your email address will not be published. Required fields are marked *