Question: Create a program that accepts two string inputs for the names of people. Create a function that compares their length. Within that function, you may
Create a program that accepts two string inputs for the names of people. Create a function that compares their length. Within that function, you may use the string len function that was created in class and I posted a working version for This function then prints out the names in sorted order, from shortest to longest. eg if the two names are: Jenny and Jose it would print: The order of the names are: Jose Jenny Sum all of those lengths and print them: The sum of those lengths are:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
