-In Python, anonymous function means that a function is without a name. As we already know that def keyword is used to define the normal functions and the lambda keyword is used to create anonymous functions.
- it return the expression part.
#add two number by lambda number
print("Addition of number by lambda ")
#find cube of number
print("Cube lambda function")
Addition of number by lambda
Cube lambda function
-In this program, we make lambda function of addition in which we take two arguments x and y, and return the expression x+y.
- and lambda function of cube in which we take one argument and return the cube of the number.