0
Tracking your BMI is a useful way of checking if you’re maintaining a healthy weight. It’s calculated using a person's weight an
I did weight = float(input), height = float(input)
6 Respostas
+ 2
Hello Alabi,
Please update your post's tags to include Python as a language relevant to the question
https://code.sololearn.com/W3uiji9X28C1/?ref=app
+ 1
Alabi Ayodele, compare the codes, I corrected some errors
weight = float(input())
height = float(input())
Bmi = weight/height**2
if Bmi < 18.5:
print("Underweight")
elif Bmi >= 18.5 and Bmi < 25:
print("Normal")
elif Bmi >= 25 and Bmi < 30:
print("Overweight")
else:
print("Obesity")
0
That's incomplete code :|
Try again
0
See what I did
weight = float(input())
height = float(input())
Bmi = weight/height
if Bmi < 18.5:
print("Underweight")
elif Bmi >= 18.5 and < 25:
print("Normal")
elif Bmi > 25 and < 30:
print("Overweight")
else Bmi >= 30:
print("Obesity")
0
Thanks dude, it worked
0
Alabi Ayodele, compare the codes, I corrected some errors
weight = float(input())
height = float(input())
Bmi = weight/height**2
if Bmi < 18.5:
print("Underweight")
elif Bmi >= 18.5 and Bmi < 25:
print("Normal")
elif Bmi >= 25 and Bmi < 30:
print("Overweight")
else:
print("Obesity")