You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#it can take any number of arguments, but can only have one expression
#syntax: lambda arguments : expression
#Add 10 to argument a and return the result:
x = lambda a : a + 10
print(x(5))
#lambda function called x that takes a single parameter a and returns the value of a + 10. When the lambda function x is called with the argument 5, it will return 15