Question: python COMPILER ERROR MESSAGES SyntaxError: invalid syntax (ColorMixer.py, line 10) 10 print ( You didn't input two primary colors. ') 1 color1-input ('Enter primary color:)

python

python COMPILER ERROR MESSAGES SyntaxError: invalid syntax (ColorMixer.py, line 10) 10 print

COMPILER ERROR MESSAGES SyntaxError: invalid syntax (ColorMixer.py, line 10) 10 print ( You didn't input two primary colors. ') 1 color1-input ('Enter primary color:) 2 color2-input ('Enter primary color:') 3 if color1'red' and color2--'blue' or color1'blue' and color2- 'red': 4 print( 'When-you mix red and blue, you get purple') if colorl-'red' and color2yellow or color1 'yellow' and color2-'red': rint ( 'When you mix red and yellow, you get orange) if color1-='blue' and color2-=.yellow" or color1-='yellow, and color2-'blue": 6 print ( 'When you mix blue and yellow, you get ereen') else: 10 print( 'You didn't input two primary colors

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