0

26 calculator wtf? Why it’s wrong?

weight = float(input()) height = float(input()) height = height ** 2 x = weight / height if x < 18.5: print(x, "Underweight") elif ((x >= 18.5) and (x < 25)): print(x, "Normal") elif ((x >= 25) and (x < 30)): print(x, "Overweight") else: print(x, "Obesity") Why it’s wrong?!

9th Feb 2022, 3:02 PM
Дмитрий Водолазский
2 Respuestas
+ 5
Дмитрий Водолазский You need to print "Underweight", "Normal", "Overweight" or "Obesity" Nothing more.
9th Feb 2022, 3:30 PM
Denise Roßberg
Denise Roßberg - avatar