+ 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')
3 ответов
+ 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
+ 2
And also you should use >= , instead of <=
Check again..
+ 1
Thanks a lot 😍