Python Tutorial|Lambda Expression
* Lambda Expression * What is Lambda Expression? :- In python we can define function in 2 ways 1. def Keyword Using :- This Type of Function De fination we always Use In Python. This Function Name We Define Properly So it is Simple to Understand That. def double(x): return x * 2 2. Lambda Keyword Using :- In Python, anonymous function is a function that is defined without any name . While normal functions are defined using the def keyword, in Python anonymous functions are defined using the lambda keyword. Hence, anonymous functions are also called lambda functions . Syntax of Lambda Function in python lambda arguments: expression Why Lambda Function Is Better Than Instead def Function ? : - Just Because The Lambda Expression provide some benefit below as follow :- 1. We can pass Lambda Function As a argument to another function 2. We can Store function In variable 3. For Small Process Like Muti