- 2
How to remove the bug while making a BMI calculator in python?
Anyone having any solution to it, plz help.
8 Respostas
+ 1
and what is your error
+ 1
Ohhh ok I'll try...thnku so much
0
Yeah sure
0
w = float(input ())
h = float(input())
bmi = w/(h**2)
print ("your bmi is "+str(bmi))
if bmi < 18.5:
print ("Underweight")
elif 18.5 <= bmi < 25:
print ("Normal")
elif 25 <= bmi < 30:
print ("Overweight")
else:
print ("Obesity")
0
This was the code