logo CodeStepByStep logo

lambda_concat_name

Language/Type: Python functional programming lambdas

Define a lambda expression named f that accepts two string parameters representing a first and last name and concatenates them together to return a string in "Last, First" format. For example, if passed "Cynthia" and "Lee", it would return "Lee, Cynthia". 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.