Question: Type the program's output # New means new compared to previous level provincial _ capitals = 1 'Yukon': 'Whitehorse', 'Manitoba': 'Winnipeg', 'Alberta' : 'Eamonton', 'Ontario':
Type the program's output
# "New" means new compared to previous level
provincialcapitals
'Yukon': 'Whitehorse',
'Manitoba': 'Winnipeg',
'Alberta' : 'Eamonton',
'Ontario': 'Ioronto'
provincename input
while province name 'exit':
if provincename in provinciaicapitals:
print provincialcapitals province name
del provincial capitalsprovincename # New line Output
else:
print
provincename input
Input
Nebraska
Manitoba
Alberta
Manitoba
exit
Output
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
