Question: Write a program in which the user inputs the names of US states, which get added to a list. Your program should: Include comments describing

Write a program in which the user inputs the names of US states, which get added to a list. Your program should: Include comments describing each major section of code. Create a list it should initially be empty. Ask the user to input the name of a US state or hit enter to end the list. If the user adds the name of a state (i.e., anything other than a blank value): Add the name to the list. Tell the user that theyve added [state] to the list (where [state] is the name that just got added). Ask the user (again) to input a US state name and keep asking until the user hits enter without adding

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!