look into this | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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")

31st Oct 2021, 6:01 PM
Jahid Atal
Jahid Atal - avatar
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"
31st Oct 2021, 6:10 PM
Lisa
Lisa - avatar
+ 4
Keep learning! We'll surely meet on Q&A and the code section šŸ˜‰
31st Oct 2021, 6:16 PM
Lisa
Lisa - avatar
+ 3
Okay, I looked at it. What's your question?
31st Oct 2021, 6:07 PM
Lisa
Lisa - avatar
+ 3
Oh my God it worked. Thank you so much. Lisa šŸ™
31st Oct 2021, 6:13 PM
Jahid Atal
Jahid Atal - avatar
+ 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.
31st Oct 2021, 6:09 PM
Jahid Atal
Jahid Atal - avatar
+ 2
Great! šŸ˜Š
31st Oct 2021, 6:13 PM
Lisa
Lisa - avatar