repl.it
@Scytherbar/

color combiner

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import time
print("What two colors do you want to combine?\n!Basic Colors Only!\nType 'STOP' in the 1st color to END...\n")
time.sleep(1)
color1 = input("1st color: ")
time.sleep(0.5)
color2 = input("2nd color: ")
time.sleep(1)
while (color1 or color2 != "STOP"):
    if (color1 == "yellow" and color2 == "blue"):
        print("The color Yellow and Blue combined is Green.")
    if (color1 == "blue" and color2 == "yellow"):
        print("The color Blue and Yellow combined is Green.")
    elif (color1 == "red" and color2 == "blue"):
        print("The color Red and Blue combined is Violet.")
    elif (color1 == "blue" and color2 == "red"):
        print("The color Blue and Red combined is Violet.")
    elif (color1 == "red" and color2 == "yellow"):
        print("The color Red and Yellow combined is Orange.")
    elif (color1 == ("yellow" or "Yellow") and color2 == ("red" or "Red")):
        print("The color Yellow and Red combined is Orange.")
    elif(color1 == ("purple" or "Purple") and color2 == ("orange" or "Orange")):
        print("The color Purple and Orange combined is Brown.")
print("Done.")
?