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
provincial_capitals =1
'Yukon': 'Whitehorse',
'Manitoba': 'Winnipeg',
'Alberta' : 'Eamonton',
'Ontario': 'Ioronto'
province_name = input ()
while province name != 'exit':
if province_name in provinciai_capitals:
print (provincial_capitals [province name])
del provincial capitals[province_name] # New line Output
else:
print ('x')
province_name = input ()
Input
Nebraska
Manitoba
Alberta
Manitoba
exit
Output
 Type the program's output # "New" means new compared to previous

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!