They are syntactically restricted to a single expression.
preetam
Feb 5th, 2016
Lambda is a anonymous function, which does not have a name and no fixed number of arguments. Represented by keyword lambda followed by statement.
Ex:
sum = lambda a,b: a+b
sum(2,3)
output: 5
nagu
May 9th, 2017
Lambdas evaluates at run time and these do not need statements
Why can't lambda forms in Python contain statements?
Profile Answers by janelyn Questions by janelyn
Questions by janelyn answers by janelyn