+ 2

What's wrong in my code for BMI Calculator?

w = float(input()) h = float(input()) bmi = w/(h**2) if bmi > 0: if bmi < 18.5: print('Underweight') elif bmi <25: print ('Normal') elif bmi < 30: print('Overwieght') else : print ("Obesity")

28th Sep 2022, 12:28 PM
N Balti
N Balti - avatar
2 Answers
+ 4
You have a typo in "Overweight"
28th Sep 2022, 12:34 PM
Lisa
Lisa - avatar
0
Lisa Thank you very much!
28th Sep 2022, 12:44 PM
N Balti
N Balti - avatar