- 1

Bmi

What's wrong with my code Can your help me? weight = float(input()) height = float(input()) bmi = weight / (height)**2 if bmi < 18.5: print("Underweight") elif (bmi>=18.5 and bmi < 25): print("Normal") elif (bmi>=25 and bmi<30): print("Overweght") else: print("Obesity")

18th Aug 2022, 7:07 PM
Matilda Madam
Matilda Madam - avatar
3 ответов
+ 3
There is a typo in "Overweight"
18th Aug 2022, 7:19 PM
Lisa
Lisa - avatar
+ 3
Great that you could solve it!
18th Aug 2022, 7:24 PM
Lisa
Lisa - avatar
+ 1
Thank you. It works 😅
18th Aug 2022, 7:23 PM
Matilda Madam
Matilda Madam - avatar