A lambda function is a small anonymous function.

A lambda function can take any number of arguments, but can only have one expression.

Let us see a quick example of a lambda expression being used to square a number:

 sqr = lambda x: x * x  
 sqr(10)  # 100
Continue reading