Question: Code Example 1 2 - 1 1 . flowers = { red : rose, white: lily, yellow: buttercup } 2 . print (
Code Example
flowers red: "rose", "white": "lily", "yellow": "buttercup"
printflowers
flowersblue "carnation"
printflowers
printThis is a red flower:", flowers.getred "none"
key "white"
if key in flowers:
flower flowerskey
printThis is a key, "flower:", flower
key "green"
if key in flowers:
flower flowerskey
del flowerskey
printflower was deleted"
else:
printThere is no key, "flower"
Refer to Code Example : What would the print statement on line display?
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
