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
2 Respostas
+ 4
print("Overweight")
0
Also, the last condition should be >=30 instead of >30.