+ 2
look into this
W = float(input()) H = float(input()) res = W / H ** 2 if res < 18.5: print ("Underweight") elif res >= 18.5 and res < 25: print ("You are Normal") elif res >= 25 and res < 30: print ("Overweight") elif res >= 30: print ("Obesity")
6 Respostas
+ 4
Your code looks okay, but the output (the text in the prints) must be exactly the same as in the task description, so it should be only "Normal"
+ 4
Keep learning! We'll surely meet on Q&A and the code section 😉
+ 3
Okay, I looked at it. What's your question?
+ 3
Oh my God it worked.
Thank you so much. Lisa
🙏
+ 2
Hey Lisa,
I am trying to solve the BMI calculator challenge, but the code doesn't work on solo learn. However it works in my computer.
+ 2
Great! 😊