+ 1
Some explain why I keep getting an error at line 2
#your code goes here weight = double(input ()) height = double(input ()) BMI = weight / (height* height ) if BMI < 18.5 : print("Underweight") else : if BMI >= 18.5 or BMI < 25 : print ("Normal") else : if BMI >= 25 or BMI < 30 : print ("Overweight") else : if BMI >= 30 : print ("Obesity")
4 Answers
+ 3
There is no double() function in python. It is float() in Python. Replace it.
And I think, you need to think about logic again in indentation of if blocks, to get pass all tests...
+ 2
**Read the error message**. What does it say? Python does not have a built-in double() function.
+ 2
Jayakrishnađźđł I have seen it but I really can't seem to solve it can you give me a reference to somewhere I can get better understanding of indentation
+ 2
see this code :
https://code.sololearn.com/cT5BRIbkia21/?ref=app
additional references.. hope it help to solve it...
https://www.sololearn.com/discuss/2983351/?ref=app
https://www.sololearn.com/discuss/2534829/?ref=app