Defining a lambda function

Report a typo

Select all correctly defined lambda functions.

A.

lambda doubler(x): x * 2

B.

lambda x: y = x + 3, y ** 2

C.

lambda x, y: x + y

D.

(lambda x, y: 
    if x > y:
        return x
    else:
        return y)

E.

(lambda x, y:
    (x + y)**2)

Lambda functions have their limitations: they are anonymous and contain no more than one expression.
Select one or more options from the list
___

Create a free account to access the full topic