-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathaaron.py
30 lines (28 loc) · 1.22 KB
/
aaron.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from helpers import *
def primary_colors(primary, secondary):
if(primary=="red"):
if(secondary=="yellow"):
print("When you mix red and yellow, you get orange.")
elif(secondary=="blue"):
print("When you mix red and blue, you get purple.")
else:
print("You didn't input two primary colors.")
elif(primary =="blue"):
if(secondary=="red"):
print("When you mix blue and red, you get purple.")
elif(secondary=="yellow"):
print("When you mix blue and yellow, you get green.")
else:
print("You didn't input two primary colors.")
elif(primary=="yellow"):
if(secondary=="red"):
print("When you mix yellow and red, you get orange.")
elif(secondary=="blue"):
print("When you mix yellow and blue, you get green.")
else:
print("You didn't input two primary colors.")
else:
print("You didn't input two primary colors.")
color1 = validateUserString("Pick a color",['red', 'yellow', 'blue'], True, 3, "Invalid color." )
color2 = validateUserString("Pick another color",['red', 'yellow', 'blue'], True, 3, "Invalid color." )
primary_colors(color1,color2 )