Question: Use a dictionary to store several states ( 5 ) and their capitals. Add another key - value pair to the dictionary where the value

Use a dictionary to store several states (5) and their capitals. Add another key-value pair to the dictionary where the value for the state's capital is an empty string;
like this for example: {'alabama':'',}
a. Print the raw dictionary.
b. Add another key-value pair for a 6th state.
c. Print the raw dictionary
d. Modify the state with the empty string dynamically (modify the key-value pair) using the appropriate technique.

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 Programming Questions!