Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Building Database Driven Catalogs

Authors: Sherif Danish

1st Edition

0070153078, 978-0070153073

More Books

Students also viewed these Databases questions