BMI calculator 3rd test | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

BMI calculator 3rd test

weight = input() height = input() BMI = float(weight) / (float(height)**2) if float(BMI) < 18.5: print("Underweight") if BMI >= 18.5 and BMI < 25: print("Normal") if BMI >= 25 and BMI < 30: print("Underweight") if BMI > 30: print("Obesity") I can’t complete 3rd test, what’s wrong? It calculates correct

1st Oct 2021, 10:40 AM
Renat Salyukov
Renat Salyukov - avatar
2 Answers
+ 4
print("Overweight")
1st Oct 2021, 10:50 AM
Simba
Simba - avatar
0
Also, the last condition should be >=30 instead of >30.
1st Oct 2021, 1:26 PM
Simon Sauter
Simon Sauter - avatar