logo CodeStepByStep logo

longest_name

Language/Type: Python if/else input cumulative algorithms string

Write a function named longest_name that reads names typed by the user and prints the longest name (the name that contains the most characters) in the format shown below. Use the format shown below, which might result from a call of longest_name(4):


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.