-
Notifications
You must be signed in to change notification settings - Fork 1
/
meal_planner.py
47 lines (33 loc) · 952 Bytes
/
meal_planner.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
# Weekly meal plan
shopping_list = []
days_of_week = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
meals_of_day = ["Brkfst", "Lunch", "Snack1", "Dinner", "Snack2"]
meal_plan_dict = {x: {y: None for y in meals_of_day} for x in days_of_week}
# Iterate through days_of_week and meals_of_day to index meal_plan_dict
for day in days_of_week:
print "{}:".format(day)
for meal in meals_of_day:
print "\t{}:\t{}".format(meal, meal_plan_dict[day][meal])
# Meal Plan = Recipe --> Shopping List
meals = {
"breakfast" : [
"Toast w Peanut Butter",
"10oz of Greek Yoghurt",
"Three eggs w vegetables",
"2 peices of fruit"
],
"lunch" : [
"Spaghetti w vegis",
"Cup of lentils",
"Rice w vegis"
],
"dinner" : [],
"snack" = []
}
class Food:
def __init__(self, name, amount=None):
self.serving_size = amount
self.name = name
def get_nutrition(self):
#api call
pass