Question: state _ dict = { 'Tennessee': ' TN ' , 'Missouri': ' MO ' , 'Mississippi': ' MS ' , 'Illinois': ' IL ' ,

state_dict ={
'Tennessee': 'TN',
'Missouri': 'MO',
'Mississippi': 'MS',
'Illinois': 'IL',
'Arkansas': 'AR'
}
state_name = input()
state_code = input()
state_dict[state_name]= state_code
''' Your code goes here ''' state_dict is a dictionary with states' name and code pairs. A new state is read from input and added into state_dict. For each state in state_dict, output the state's name, followed by "'s code: ", and the state's code.

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