Question: you have a partially written program with the following code: color det = { ' Red ' : 7 , 'Blue': 1 2 , Green':

you have a partially written program with the following code: color det ={'Red': 7, 'Blue': 12, Green': 3, 'Yellow': 14) response = input (Enter the color to lookup: *) Write an if statement that determines whether response is a key in the dictionary color_det. If response is a key is in the dictionary, display the value that is associated with that key. If response is not a key in the dictionary, display the message "Color not found"

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!