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: 'Blue': Green': 'Yellow': response input Enter the color to lookup: Write an if statement that determines whether response is a key in the dictionary colordet. 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
