0

What should I change about this code to get an output

https://code.sololearn.com/cL1a7qHrnkyI/?ref=app

3rd Oct 2021, 12:07 PM
bernard
bernard - avatar
2 Answers
0
You wrote "<=18" in the second if, when it should be ">=18".. You also missed "BMI" after "and" in your if statements. And finally you should convert your inputs to float, like: float(input()) Here is a working code: https://code.sololearn.com/cT9I8MGF0BIi/?ref=app
3rd Oct 2021, 12:10 PM
Aleksei Radchenkov
Aleksei Radchenkov - avatar