I am just starting my programming classes in python and have to write a program that lets the user input two of the primary colors and it prints the resulting secondary color. I understand most of the beginner steps of python but always seem to skip over a few things or miss a step here and there. Can someone tell me what I'm doing wrong?
color1 = input("Choose your first color. (red, blue, yellow) :")
color2 = input("What is your second color? (red, blue, yellow) :")
if color1 == red and color2 == blue or color1 == blue and color2 == red:
print("Your result is purple")
elif color1 == red and color2 == yellow or color1 == yellow and color2 == red:
print("Your result is orange")
elif color1 == blue and color2 == yellow or color1 == yellow and color2 == blue:
print("your result is green")