Python Program using a lambda function
In this program, you will learn how to create a simple program using a lambda function in Python.
a = lambda a: a + 10
Example: How to create a simple program using lambda function in Python
a = lambda a: a + 10
x = int(input("Enter a number:"))
print("Lambda return value is:", a(x))
Output:
Enter a number:10
Lambda return value is: 20