PY
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
#Note for some reason it won't ever really output the seacond optional text when inputed large numbers,and really I looked up other bmi calculaters but mine just does not seem to work right.
#Please if you have any tips I could really use them or even some advise! To improve this code!
#ok I changed it a bit! It should work better now hopefully!
#Note! The height is calculated by feet in metres!
name=str(input())
height=float(input())
weight=float(input())
w=weight**2
h=height
bmi=w/h
if 18<=bmi<=25:
print(name)
print(bmi)
print("You are Normal")
print("You are just fine but don\'t forget to exercise!")
elif bmi<18:
print(name)
print(bmi)
print("You are underweight")
elif bmi>25:
print(name)
print(bmi)
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run