BMI calculator guys plz help me to solve this question python beginner | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

BMI calculator guys plz help me to solve this question python beginner

weight=int(input()) height=float(input()) bmi=weight/float(height*height) if bmi<18.5: print ("Underweight") elif bmi>=18.5 and bmi<25: print ("Normal") elif bmi>=25 and bmi<30: print ("Overweight") elif bmi==30 or bmi>30: print ("Obesty") Why this code is not working?

25th Mar 2021, 6:31 PM
Pratiksha Tharu
Pratiksha Tharu - avatar
1 Answer
+ 1
Simple typo. It should be "Obesity".
25th Mar 2021, 7:00 PM
Abir Hasan
Abir Hasan - avatar