-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhackathon python code.py
More file actions
36 lines (23 loc) · 1.08 KB
/
Copy pathhackathon python code.py
File metadata and controls
36 lines (23 loc) · 1.08 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
#Assume the user is a underweight teenager
#high metabolism
#underweight
#numbers are just for representation
#more factors would be taken into account for the real product
#benchmark and specific numbers would be adjusted after consultation with medical experts
def main():
protein=["steak","chicken","pork","duck"] #menu is sorted out into diff types of food
normalcarbo=["noodles"]
supercarbo=["rice", "potato"]
metabolism=110#this data will be directly transferred to the reciever through the chip
weight=35#more factors besides weight and metabolism will be considered
if (weight<40):#just a number for representation
if metabolism > 100:
print("you should eat",supercarbo)
else:
print("you should eat", normalcarbo)
else:
if metabolism>100:
print("you should eat", normalcarbo)
else:
print("you should eat",protein)
main()