0
why wont my code work for the BMI calculator?
my code works for 4/5 test cases on the course, but why it doesn't work on the third test case? w=int(input()) h=float(input()) h*=h BMI=float(w/h) 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 and BMI <100: print("Obesity") any help appreciated, thanks
2 Réponses
+ 1
Hi! If your code is correct, then try to change "overweight" -> to "Overweight" 😉👍
+ 1
thank you, that solved it!