logo CodeStepByStep logo


Language/Type: Python functional programming lambdas

Define a lambda expression named f that accepts two integer parameters and returns the larger of the two; for example, if passed 4 and 11, it would return 11. Do not write an entire function; just write a statement of the form:

f = lambda parameters: expression
Function: Write a Python function as described, not a complete program.

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.