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?!
2 Respuestas
+ 5
Дмитрий Водолазский
You need to print "Underweight", "Normal", "Overweight" or "Obesity"
Nothing more.
+ 3
Why you are printing input value? You just have to print final value nothing else
https://www.sololearn.com/discuss/2687547/?ref=app
https://www.sololearn.com/discuss/2686011/?ref=app
https://www.sololearn.com/discuss/2940297/?ref=app
https://www.sololearn.com/discuss/2686226/?ref=ap
https://www.sololearn.com/discuss/2892961/?ref=app