0

I get an error that repeats my output (correct) but without a line break i seem to have. Does anyone know why?

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

10th Jul 2021, 9:33 PM
janina1327
janina1327 - avatar
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')
10th Jul 2021, 10:38 PM
Gideon Okike
Gideon Okike - avatar
0
can you explain more detailed your problem?... your code seems to work well ^^
10th Jul 2021, 9:36 PM
visph
visph - avatar
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?
10th Jul 2021, 9:39 PM
janina1327
janina1327 - avatar
0
your code is good, but your input are not in the right order: first should be weight, then second must be height ;)
10th Jul 2021, 9:46 PM
visph
visph - avatar
0
Haha yes! Well that person would look strange indeed :D thanks a lot!
10th Jul 2021, 9:47 PM
janina1327
janina1327 - avatar