Page 1 of 1

CHALLENGE ACTIVITY 8.12.2: Enter the output of dictionaries. 375510.2350218.qx3zqy7 Jump to level 1 1 Type the program's

Posted: Sun May 15, 2022 11:57 am
by answerhappygod
Challenge Activity 8 12 2 Enter The Output Of Dictionaries 375510 2350218 Qx3zqy7 Jump To Level 1 1 Type The Program S 1
Challenge Activity 8 12 2 Enter The Output Of Dictionaries 375510 2350218 Qx3zqy7 Jump To Level 1 1 Type The Program S 1 (41.43 KiB) Viewed 48 times
CHALLENGE ACTIVITY 8.12.2: Enter the output of dictionaries. 375510.2350218.qx3zqy7 Jump to level 1 1 Type the program's output # "New" means new compared to previous level provincial_capitals = { 'Yukon": 'Whitehorse', 'Nunavut': 'Iqaluit', Manitoba': 'Winnipeg', 'BC': 'Victoria' } Input Manitoba Nunavut Texas Nunavut exit province_name = input () while province_name != 'exit': if province_name in provincial_capitals: print (provincial_capitals (province_name] ) del provincial_capitals (province_name] # New line else: print('x') province_name = input() Output 4 Check Next Feedback? How was this section? 10 9 Provide feedback