-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathm
32 lines (26 loc) · 800 Bytes
/
m
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
print("Step one")
print("enter your weight (use kilograms)")
m = float(input()) # m is mass
print("enter your height (use metres)")
h = float(input()) # h is height
index = m / h ** 2 # index is body index
positive_index = abs(index) # body index must be positive
if positive_index < 16:
print("critical mass deficit")
if 16 <= positive_index < 18.5:
print("mass deficit")
if 18.5 <= positive_index < 25:
print("normal weight")
if 25 <= positive_index < 30:
print("overweight")
if 30 <= positive_index < 35:
print("first degree obesity")
if 35 <= positive_index < 40:
print("second degree obesity")
if positive_index >= 40:
print("third degree obesity")
# Have to do cycle in future
# Can be used to calculate body index.
# NO GUI
# Python 3.10.2
# GPLv3