Question: Using python, write code for problem. Please also put screenshot of your code. State Capitals Assume that the list stateCapitals contains the names of the
Using python, write code for problem. Please also put screenshot of your code.

State Capitals Assume that the list stateCapitals contains the names of the 50 state capitals. Write a robust code segment that requests the name of a capital and removes it from the list. See Fig. 6.2. Enter a state capital to delete: Chicago Not a state capital. Enter a state capital to delete: Springfield Capital deleted
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
