# Topic covered
* Built-in Functions
* Anonymous/lambda Functions
* map() function
* reduce() function
* filter() function
* eval() function
10.1 Anonymous/lambda Functions
Sometimes we can declare a function without any name, such type of nameless functions are called
anonymous/lambda functions
The main purpose of anonymous function is just for instant use(i.e. for one time usage)
AKA lambda functions or shorthand function
# Syntax
lambda argument_list : expression
print((lambda x: x + 1)(2)) # 3
s = lambda n:n*n
print(s(4)) # 64
s = lambda a,b:a+b
print(s(2, 3)) # 5
s = lambda a,b:a if a>b else b
print(s(10,20)) # 20
print(s(100,200)) # 200
print((lambda x, y, z=3: x + y + z)(1, 2))
Note
Lambda Function internally returns expression value and we are not required to write return statement explicitly