Lambda Blog Posts

Lambda functions in python

This article helps to give you a brief introduction of lambda functions, how to write a lambda function and gives you the code for traditional way of writing functions and lambda functions.
Name Origin: In any programming language a function is called as anonymous function if the specific function definition that is not bound to an identifier. Unlike normal functions which is defined by the key word def, the anonymous functions are declared with the help of lambda keyword.
lambda arguments: expression
we will look at examples with and without using lambda functions.
def square(num):
return num*num
square = lambda num: num*num

0 Likes 1230 Views