1. Help Center
  2. Python Programming

What are lambda functions?

Lambda functions are generally inline, anonymous functions represented by a single expression. They are used for creating function objects during runtime. They can accept any number of parameters. They are usually used where functions are required only for a short period. They can be used as:
 
mul_func = lambda x,y : x*y
print(mul_func(6, 4))
# Output: 24