0
I get an error that repeats my output (correct) but without a line break i seem to have. Does anyone know why?
5 Answers
+ 1
Maybe you try this
height = float(input())
weight = float(input())
bmi = weight / height**2
if bmi < 18.5:
print ('Underweight')
elif (bmi >= 18.5 and bmi < 25):
print ('Normal')
elif (bmi >= 25 and bmi < 30):
print ('Overweight')
else:
print('Obesity')
0
can you explain more detailed your problem?... your code seems to work well ^^
0
I don't get the project approved in the app! Error in Testcase #1, but output is exactly the same (despite a line break it seems to display in my output...) Any ideas?
0
your code is good, but your input are not in the right order: first should be weight, then second must be height ;)
0
Haha yes! Well that person would look strange indeed :D thanks a lot!