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.")
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
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