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 Answers
+ 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