Question: state _ dict = { 'Tennessee': ' TN ' , 'Missouri': ' MO ' , 'Mississippi': ' MS ' , 'Illinois': ' IL ' ,
statedict
'Tennessee': TN
'Missouri': MO
'Mississippi': MS
'Illinois': IL
'Arkansas': AR
statename input
statecode input
statedictstatename statecode
Your code goes here statedict is a dictionary with states' name and code pairs. A new state is read from input and added into statedict. For each state in statedict, 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
