1.

What are lambda functions?

Answer»

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*yprint(mul_func(6, 4))# OUTPUT: 24


Discussion

No Comment Found