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 and their capitals. Add another keyvalue 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 keyvalue pair for a th state.
c Print the raw dictionary
d Modify the state with the empty string dynamically modify the keyvalue pair using the appropriate technique.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
