1# Program to show the use of lambda functions
2double = lambda x: x * 2
3
4print(double(5))
1Lamda is just one line anonymous function
2Useful when writing function inside function
3it can take multiple arguments but computes only one expression
4
5Syntax:
6 x = lambda arguments : expression
7