To see what is lambda function and syntax of lambda function in python3.
Lambda functions are small functions usually not more than a line.
Its also called as one line function.
Lambda function can have any number of arguments but only one expression.
It defined with keyword lambda.
Its mostly used for mathematical expression
#lambda function to double the input
d = lambda x: x * 2
#lambda functions with mapping
newlist=list(map(lambda x: x * 2,list1))