Question: 5. Write a main function that does the following: a) Request a full name of your favorite US president from the console input. b)
5. Write a main function that does the following: a) Request a full name of your favorite US president from the console input. b) Use string functions to print the first name and last name separately. Example Output 1 Enter the full name of your favorite US president: George Washington First Name: George Last Name: Washington Example Output 2 Enter the full name of your favorite US president: John Fitzgerald Kennedy First Name: John Last Name: Kennedy
Step by Step Solution
There are 3 Steps involved in it
python program def countspacesname to count spaces in a name count0 for a in nam... View full answer
Get step-by-step solutions from verified subject matter experts
