-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdinner_picks.py
More file actions
88 lines (68 loc) · 3.28 KB
/
Copy pathdinner_picks.py
File metadata and controls
88 lines (68 loc) · 3.28 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
## the purpose of this code is to help pick a dinner meal option
chicken = ['chicken di van','corn chowder','White Chicken Chili','chicken parm','Chcik. parm/mayo', 'chicken with rice', 'chicken dijon salad','chicken salad','chiekn alfredo','britolli','buffalo chicken dip','chicken pot pie','chicken dumplings', 'BBQ']
beef = ['beef stew', 'lasagna','spagetti and meat sauce',]
pork = ['breakfast', 'sausage with tortellini']
fish = ['fish tacos','salmon', 'britolli' ]
italian = ['pizza', 'calzones', 'olive garden']
sandwiches =['Mac and Stacks', 'Matchbox', 'Firehouse']
american =[ 'Matchbox', 'Wendys', 'Five Guys','Wings']
mexican = [ 'Chipotle', 'Uncle Julio']
japanese = [ 'hibachi', 'sushi']
chinese = ['China Garden']
answer="yes"
while answer == 'yes':
## Initiates first level of narrowing dinner option.
print ("Do you want to 1) cook or 2) get takeout?: (Please enter 'cook' or 'takeout')");
option = input()
option = option.lower()
## verify if an appropriate input is given.
while option != 'cook'and option !='takeout':
print ("Please pick either cook or takeout")
option = input()
option = option.lower()
if option == 'cook':
## begins second level of narrowing food options for at home cooking.
print ("What protein would you like: Chicken, Beef, Pork, Fish")
protein = input()
protein = protein.lower()
## verify if an appropriate input is given.
while protein != 'chicken'and protein !='beef' and protein != 'pork' and protein != 'fish':
print ("Please pick either chicken, beef, pork or fish")
protein = input()
protein = protein.lower()
## prints coresponding meal options
if protein == 'chicken':
print (chicken)
elif protein == 'beef':
print (beef)
elif protein == 'fish':
print (fish)
elif protein == 'pork':
print (pork)
elif option == 'takeout':
## begins second level of narrowing food options for at takeout meals.
print ("What are you in the mood for?: Mexican, Sandwiches, American, Italian, Chinese, Japanese")
resturant = input()
resturant = resturant.lower()
## verify if an appropriate input is given.
while resturant != 'mexican' and resturant != 'sandwiches' and resturant != 'american'and resturant != 'italian'and resturant != 'chinese'and resturant != 'japanese':
print ("Please pick either Mexican, Sandwiches, American, Italian, Chinese, Japanese")
resturant = input()
resturant = resturant.lower()
## prints cooresponding meal options
if resturant == 'mexican':
print (mexican)
elif resturant == 'sandwiches':
print (sandwiches)
elif resturant == 'american':
print (american)
elif resturant == 'italian':
print (italian)
elif resturant == 'chinese':
print (chinese)
elif resturant == 'japanese':
print (japanese)
## determines if user wants to see more other meal options. This will trigger loop to repeat if yes.
print ("Wold you like to see more options? Yes/ No")
answer = input()
answer = answer.lower()