I am at the BMI calculator practice and I been struggling with It so what's actually Rong with My cod | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

I am at the BMI calculator practice and I been struggling with It so what's actually Rong with My cod

weight=int(input()) height=float(input()) bmi= float (weight/height**2) if bmi<float(18.5): print ("Underweight") elif float(18.5)<=bmi<25: print ("normal") elif 25<=bmi<30: print ("Overweight") elif bmi>30: print ("Obesity")

3rd Jul 2021, 8:55 PM
Youcef Tahri
2 Answers
+ 2
'normal' must be capitalized: 'Normal'... also, you doesn't need to use float elsewhere than for height input ^^
3rd Jul 2021, 8:57 PM
visph
visph - avatar
0
Thank you so much it works (◍•ᴗ•◍)❤
3rd Jul 2021, 8:59 PM
Youcef Tahri