forked from Kreloc/python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgetDinnerMenu.py
146 lines (142 loc) · 6.98 KB
/
getDinnerMenu.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
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
#! python3
# getDinnerMenu - a function to get a weekly dinner menu.
import random, re
#Define dinner options
dinnerOptions = ['breakfast burritos',
'chicken enchiladas',
'fajitas',
'kalua pork',
'lasagna',
'mac & cheese',
'manicotti',
'meatloaf',
'pulled pork',
'red beans with hammock',
'ribs',
'roasted chicken & veggies',
'salmon chowder',
'Shit on Rice',
'Hamburger Pie',
'Sloppy Joes',
'Chicken drumsticks',
'Teriyaki chicken burgers',
'Chicken and Noodles',
'Chicken and Green Beans',
'Chicken pot pie',
'Bbq chicken',
'Pork chops',
'Ham - spiral',
'Hot dogs',
'Chili dogs',
'Frito Pie',
'Taco salad',
'Nachos',
'Rib eye steak',
'Chicken fried steak',
'Tri tip sandwich',
'Soup and grilled cheese sandwiches',
'Pizza rolls',
'Teriyaki meat with rice and brocoli',
'Pot roast and vegetables',
'Beef stew',
'Breakfast for dinner',
'Oven fried chicken',
'Spaghetti',
'Taco Dip',
'Beer battered halibut',
'Trout',
'Blackened salmon',
'Tacos',
'Shrimp scampi',
'White bean chicken chili',
'Chicken wings']
#Dictionary of dinners and their ingeredients
dinnerIngredients = {
'breakfast burritos': 'Eggs, tortillas(Burrito size), maple sausage, cheese, sour cream',
'chicken enchiladas': 'Boneless skinless chicken, cheese, black olives (chopped), green onions, enchilada sauce mix, flour tortillas, tomate paste',
'fajitas': 'Chicken/Steak meat, large onion, organe pepper, yellow pepper, refried beans, tortillas, shredded cheese, sour cream, salsa',
'kalua pork': 'Pork butt roast, Hawaiian sea salt, Liquid smoke flavoring',
'lasagna': 'Ground beef, tomato sauce, tamato paste, garlic clove, Ricotta cheese, lasagna noodles, eggs, Italian seasonings, shredded cheese, shredded parmesean cheese',
'mac & cheese': 'Macaroni noodles, butter, seasoned dry crumbs, flour, salt, milk, Velveeta, shredded cheddar cheese',
'manicotti': 'Ground beef, eggs, tomato sauce, tamato paste, garlic clove, Ricotta cheese, lasagna noodles, eggs, Italian seasonings, shredded cheese, shredded parmesean cheese',
'meatloaf': 'Ground beef, eggs, ketchup, bread crumbs, salt, pepper, Italian seasoning',
'pulled pork': 'Pork shoulder, hamburger buns, leafy green lettuce, Root beer, chili sauce, garlic cloves, root beer concentrate, tomato slices, hot pepper sauce, salt, pepper, cooking oil',
'red beans with hammock': 'Red beans, hammocks, rice',
'ribs': 'Pork spare ribs, Bbq sauce',
'roasted chicken & veggies': 'Chicken thighs with skin, oil, salt, pepper, dill, italian seasoing, carrots, zucinni',
'salmon chowder': 'Salmon, butter, onion, celery, garlic, potatoes, carrots, chicken broth, salt, butter, dried dill weed, evaporated milk, creamed corn, shredded cheddar cheese',
'Shit on Rice': 'Ground beef, rice, cream of mushroom soup',
'Hamburger Pie': 'Ground beef, green beans, corn, shredded cheese, tomato soup, onion, mashed potatoes',
'Sloppy Joes': 'Ground beef, hamburger buns, tomato paste, sloppy joe mix',
'Chicken drumsticks': 'Chicken thighs/drumsticks',
'Teriyaki chicken burgers': 'Boneless skinless chicken, hamburger buns, swiss cheese - sliced, pineapple - ring slices, teriyaki sauce',
'Chicken and Noodles': 'Chicken, onion, egg noodles',
'Chicken and Green Beans': 'Boneless skinless chicken, green beans, cream of chicken soup',
'Chicken pot pie': 'Boneless skinless chicken, mixed vegetables, pie crust, onion',
'Bbq chicken': 'Chicken drumsticks/thigs, Bbq sauce',
'Pork chops': 'Pork chops, milk, cream of mushroom soup',
'Ham - spiral': 'Honey spiral ham',
'Hot dogs': 'Hot dogs, hot dog buns, ketchup, mustard',
'Chili dogs': 'Chili, hot dogs, hot dog buns, cheese, jalapenos',
'Frito Pie': 'Fritos, chili, corn, diced tomatoes, jalapenos',
'Taco salad': 'Ground turkey, tortillas, shredded cheese, olives, beans, sour cream',
'Nachoes': 'Ground turkey/leftover tacoes, shredded cheese, jalapenos, tortilla chips',
'Rib eye steak': 'Rib eye steak, rapsberry chipolte sauce',
'Chicken fried steak': 'Round steak, crackers, eggs, shortening',
'Tri tip sandwich': 'Tri tip steak, mushrooms, itlaian bread, mozzarella cheese',
'Soup and grilled cheese sandwiches': 'sliced cheese, tomato soup, bread, butter',
'Pizza rolls': 'Pizza meats (Pepperoni, sausage, etc.), egg roll wrappers, shredded cheese, pizza sauce',
'Teriyaki meat with rice and brocoli': 'Mock beef/Chiken tender/pork loin, rice, brocoli, teriyaki sauce',
'Pot roast and vegetables': 'Pot roast, potatoes, beef broth',
'Beef stew': 'Pot roast meat, beef broth, carrots, worchester sauce, flour, onion, potatoes',
'Breakfast for dinner': 'Eggs, bacon, bread, butter',
'Oven fried chicken': 'Chicken drumsticks/thigs, eggs, cornmeal, milk',
'Spaghetti': 'Ground beef, spaghetti rigatoni, mushrooms, tomato paste, tomato sauce, italian seasoning, black pepper, minced garlic, italian bread',
'Taco Dip': 'Leftover taco stuff (meat and beans), shredded cheese, sour cream',
'Beer battered halibut': 'Halibut, batter, beer, shortening',
'Trout': 'Trout, shortening, cornmeal',
'Blackened salmon': 'Salmon, butter, blackened seasonings',
'Tacoes': 'Ground turkery, taco seasoning, tortillas, shredded cheese, lettuce, olives, avocado, sour cream',
'Shrimp scampi': 'Shrimp, butter, garlic, noodles',
'White bean chicken chili': 'White beans, chicken meat, olive oil, onion (chopped), chicken stock, salsa verde, ground cumin, coriander, two jalapenos, salt, ground white pepper, white corn',
'Chicken wings': 'Chicken wings'
}
def getDinnerMenu(numberOfDays):
#Get week worth of dinners setting one day after Tuesday as leftovers day
allIngredients = []
dinnerList = []
leftoverDaySet = False
randomLeftoverNumber = random.randint(4, 6)
for i in range(0, numberOfDays):
if i == randomLeftoverNumber:
dinnerChoice = 'Leftovers'
leftoverDaySet = True
if leftoverDaySet == True:
#print('Dinner on ' + day + ' is ' + dinnerChoice)
leftoverDaySet = False
dinnerList.append(dinnerChoice)
else:
randomNumber = random.randint(0,(len(dinnerOptions) - 1))
dinnerChoice = dinnerOptions[randomNumber]
dinnerList.append(dinnerChoice)
#Remove dinner selection from list before making next selection
dinnerOptions.remove(dinnerChoice)
#Change dinner choices if nachoes or taco dip found but tacoes are
#not a meal that week
if 'Nachos' in dinnerList:
if 'Tacos' not in dinnerList:
dinnerList.remove('Nachos')
randomNumber = random.randint(0,(len(dinnerOptions) - 1))
dinnerChoice = dinnerOptions[randomNumber]
dinnerList.append(dinnerChoice)
dinnerOptions.remove(dinnerChoice)
if 'Taco Dip' in dinnerList:
if 'Tacos' not in dinnerList:
dinnerList.remove('Taco Dip')
randomNumber = random.randint(0,(len(dinnerOptions) - 1))
dinnerChoice = dinnerOptions[randomNumber]
dinnerList.append(dinnerChoice)
dinnerOptions.remove(dinnerChoice)
#Loop thru dinnerList, assign to days, and get ingredients needed
print('\n'.join(dinnerList))
#print week menu plan