Python Forum
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Color mixing
#5
print( "Enter two of the primary colors.")
print("red and blue", red and blue = purple)
print("blue and yellow", blue and yellow = green)
print("yellow and red", yellow and red = orange
     
     
if not red and blue or yellow:
    print("error message.")
elif two of the same colors:
    print("error message.")
else:
    print("secondary color.")
Larz60+ write Jun-09-2022, 04:50 PM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.

Please read this link: BBCode
Reply


Messages In This Thread
Color mixing - by thyva - Jan-27-2017, 01:34 AM
RE: Color mixing - by micseydel - Jan-27-2017, 02:05 AM
RE: Color mixing - by thyva - Jan-27-2017, 02:38 AM
RE: Color mixing - by Mekire - Jan-27-2017, 02:44 AM
RE: Color mixing - by thyva - Jan-27-2017, 02:54 AM
RE: Color mixing - by sparkz_alot - Jan-27-2017, 03:56 PM
RE: Color mixing - by Thadectives - Jun-09-2022, 11:24 AM
RE: Color mixing - by deanhystad - Jun-09-2022, 02:36 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020