A lambda function is an anonymous function. lambda function can have any number of arguments but can have only one expression.
square = lambda num : num * num print( square(5) )
Updated: Jan 28, 2023
A lambda function is an anonymous function. lambda function can have any number of arguments but can have only one expression.
square = lambda num : num * num print( square(5) )
Comments