0
Please correct this code .
weight = float(input("weight:")) height = float(input("height:")) BMI = weight / (height**2) if BMI<18.5 : print("Underweight") if BMI>=18.5 and BMI<25 : print("Normal") if BMI>=25 and BMI<30 : print("Overweight") if BMI>=30 : print("Obesity")
3 Answers
+ 4
Challenges are tested by compiler not people. I think, the above thread can clarify your all doubts if you go through all the answers.
0
But how the user knows to give input height or weight ??