Question: Please help! Lab 7D Name format python 7.9 LAB 7D: Name format Overview Create a program that will format a person's name. Objective Use critical

7.9 LAB 7D: Name format Overview Create a program that will format a person's name. Objective Use critical thinking skills, string methods, and branching to manipulate strings. Description Many documents use a specific format for a person's name. Write a program to format the name as follows: If the input is firstName middle Name lastName then the output is lastName, firstName middlelnitial . If the input has the form firstName lastName then the output is lastName, firstName If the input has any other form, then the output should be the input does not have the correct form Ex: If the input is Enter a name: Pat Silly Doe the output is Formatted Name: Doe, Pat S. Ex: If the input is Enter a name: Julia Clark Enter a name: Julia Clark the output is Formatted Name: Clark, Julia Ex if the input is Enter a name: Julia Sue Ann Clark the output is The input does not have the correct form Hint: Use techniques from section 25 and 74 to determine how many names there are, and an easy way to manipulate them, Note: This Lab contains hidden test cases. This means that there are some test cases where zyBooks will not show you what it is inputting, nor where your output may be wrong. But if you do the visible test cases properly, you should also pass all of the hidden test cases 0/30 LAD ACTIVITY 7.9.1: LAB 70: Name format main.py Load default template user.input-input("Enter a name: ") 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
