+ 2
My bmi calculator is ok but why this app not accepting my test of bmi calculator?
8 Respostas
+ 4
The new end of module challenges look for exact outputs so don't have any unspecified prints (outputs).
+ 4
We're usually advised not to post exact solutions.
+ 3
weight=int(input())
height=float(input())
BMI=weight/height**2
print(BMI)
if BMI<18.5:
print ('Underweight')
elif BMI >=18.5 and BMI<25:
print('Normal')
elif BMI>=25 and BMI<30:
print('Overweight')
elif BMI>=30:
print('Obesity')
+ 2
This plz
+ 2
I think the error was that you were printing the BMI value.
+ 1
What is mistake in my code?
+ 1
My code's only mistake is that BMI is in capital whereas they aceppt it as bmi🙄🙄😡
+ 1
bmi = float(input())/float(input())**2
if bmi<18.5:print('Underweight')
elif 25>bmi>=18.5:print('Normal')
elif 30>bmi>=25:print('OverWeight')
elif bmi>=30:print('Obesity')