Using anonymous functions (lambda expression ): Use lambda The expression represents a function name , In other words, there is no need to re create a name for the function .( In the past, when using functions, you need to use def To define a function name , While using lambda Expressions do not need to create function names anymore )
def add(x,y):
return x+y
Equivalent to
(lambda x,y:x+y):(5,3)
add(5,3)