Question: 1 flowers = { white : lily, red: rose, blue: carnation, yellow: buttercup } 2 colors = list ( flowers . keys (

1 flowers ={"white": "lily",
"red": "rose",
"blue": "carnation",
"yellow": "buttercup"}
2 colors = list(flowers.keys())
3 colors.sort()
4 show_colors = "Colors of flowers: "
5 for color in colors:
6 show_colors += color +""
7 print(show_colors)
8 pick_color = input("Enter a color: ")
9 pick_color = pick_color.lower()
10 if pick_color in flowers:
11 Sname = flowers[pick_color]
12 print("Flower name: "+ name)
13 else:
14 print("There is no "+ pick_color +" flower.")
What will the print statement on line 7 display
1 flowers = { " white " : "lily", "red": "rose",

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 Programming Questions!