+ 2
weight = input() height = input() BMI = weight / (height ** 2) if BMI < 18.5: print(Underweight) elif BMI >= 18.5 and BM
What is the error in code
4 Answers
+ 3
Put your code in a SCRIPT on sololearn playground
If you paste it into the heading it GETS CUT OFF AND NOBODY CAN READ IT
+ 2
I advise you to search ๐ before post your question because there are many people asked the same question before
https://www.sololearn.com/Discuss/2686011/?ref=app
https://www.sololearn.com/Discuss/2748154/?ref=app
+ 1
๐ซ๐๐๐๐ ๐ซ๐๐๐๐๐๐๐๐
Even though your code is not completely represented, I noticed that your inputs will only generate strings.
You need to generate a number, perhaps even a decimal number, so I suggest you modify you inputs to accept integers or floats