+ 1

Hi everyone I have error in bmi question in python (test 3)

My code like this BMI = float(input(""))/ (float (input ("")) **2) if (BMI<18.5): print('Underweight') elif (18.5<=BMI and BMI<25): print('Normal') elif (25<=BMI and BMI<30): print('OverWeight') elif (BMI>=30): print('Obesity')

10th May 2022, 12:23 PM
Sharareh.H
Sharareh.H - avatar
3 Réponses
+ 3
1. Remove the empty string inside of the input() functions 2. Watch the spelling: It needs to be written "Overweight" 3. Watch the indentation of your code: remember that indentation is crucial in Python
10th May 2022, 12:42 PM
Lisa
Lisa - avatar
+ 2
And also you should use >= , instead of <= Check again..
10th May 2022, 12:52 PM
Jayakrishna 🇮🇳
+ 1
Thanks a lot 😍
10th May 2022, 12:45 PM
Sharareh.H
Sharareh.H - avatar