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")

6th Jan 2022, 4:49 AM
Mahaveer Singh Ranawat
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.
6th Jan 2022, 5:12 AM
Simba
Simba - avatar
0
But how the user knows to give input height or weight ??
6th Jan 2022, 5:00 AM
Mahaveer Singh Ranawat