What is lambda function in python

Anonymous function in python is known as lambda function. It can have multiple arugment but have only one statement.

Example :--

z = lambda a, b : a + b
print(z(4, 6))

output:--
10

 

Total Views: 487