Question: Which statement adds 'pears' to the following dictionary? prices = { ' apples ' : 1 . 9 9 , 'oranges': 1 . 4 9
Which statement adds 'pears' to the following dictionary?
prices apples: 'oranges': 'kiwi':
Executing the following statements produces a KeyError:
prices apples: 'oranges': 'kiwi': del priceslimes
Executing the following statements adds a new entry to the dictionary:
prices apples: 'oranges': 'kiwi': pricesoranges
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
