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)

13th Apr 2022, 9:05 AM
Alabi Ayodele
Alabi Ayodele - avatar
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
13th Apr 2022, 9:32 AM
Ipang
+ 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")
13th Apr 2022, 9:28 AM
JOKER
JOKER - avatar
0
That's incomplete code :| Try again
13th Apr 2022, 9:17 AM
JOKER
JOKER - avatar
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")
13th Apr 2022, 9:19 AM
Alabi Ayodele
Alabi Ayodele - avatar
0
Thanks dude, it worked
13th Apr 2022, 12:07 PM
Alabi Ayodele
Alabi Ayodele - avatar
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")
23rd Oct 2023, 5:39 AM
Azmeera Shanthi
Azmeera Shanthi - avatar