+ 1
Why isnât this working? (Iâm doing bmi calculator(python))
It just says âline 9 invalid syntaxâ weight = (int(input())) height = (float(input())) x = weight / height ** 2 if x < 18.5: print ("Underweight") elif x >= 18.5 and x < 25: print ("Normal") elif x >= 25 and x < 30: print ("Overweight") else print ("Obesity")
3 RĂ©ponses
+ 2
Rimchi The elif lines are wrongly indented. They should be at the same indentation as the original if statement.