+ 3
Gabriel well you have some indentation problem
All elif have to be of same indentation as if block
Here's Your right code:
x = int(input())
y = float(input())
BMI = x / (y**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")
+ 2
Your code?
+ 1
Learn indentation from the Python course and here:
https://www.geeksforgeeks.org/indentation-in-python/amp/
https://www.w3schools.com/python/gloss_python_indentation.asp
0
Next time try to show your code before asking for help
0
Gabriel đ
My pleasure âš