Lambda - Anonymous Functions

In Python, anonymous function is a function that is defined without a 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:

lambda arguments: expression

program on lambda

a=int(input("Enter first no"))
b=int(input("Enter second no"))
c=lambda x,y:x*y
print(c(a,b))

 

 

For
More Explanation
&
Online Classes

Contact Us: +919885348743