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

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
Get step-by-step solutions from verified subject matter experts
