Breaking

Lambda Function in Python

 


print("Lambda Function in Python")

# Lambda function also known as Anonymous function 
# This type of function don't have any name 
# OR A function without name 

f = lambda c : c * c
print(f(6))

OUTPUT:
Lambda Function in Python 36
Here we can say's that lambda function return the value of expression (c*c) and store the result in a f variable.

No comments: