+ 1
What am i doing wrong?
#your code goes here height = 1.85 weight = 52 value = weight/height if value < 18.5: print("Underweight") elif value >= 18.5 and value < 25: print("Normal") elif value >= 25 and value < 30: print("Overweight") else: print("Obesity")
3 Answers
+ 5
You need to eat more, because you are underweight rather than overweight :)
Your BMI formula is wrong, you need to divide the weight by the square of height. So the correct formula is
value = weight / (height**2)
+ 3
Hi, if this is about the "Code Project" problem, while I think you should do the activity yourself, I will give you a hint:
you have to read the question carefully.
The formula says height should be powered by 2 and you are not doing this, also you should not assign values to the variables yourself, but you should get them as input from the user.