Asking for help please ! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

Asking for help please !

BMI Calculator

4th Sep 2022, 11:52 AM
Mouhamed Bendakkoum
4 Answers
+ 3
Where is your code? How are we supposed to help you if you aren't showing some effort?
4th Sep 2022, 12:30 PM
Paul
Paul - avatar
+ 1
weight=float(input()) height=float(input()) x=weight/(height * height) if x < 18.5 : print ("underweight") else : if x<25 : print ("normal") else : if x < 30 : print ("overweight") else : print ("obesity")
5th Sep 2022, 12:33 PM
Mouhamed Bendakkoum
+ 1
Sorry, i forget to paste my code last time, so this is my code, i hope that you find the error
5th Sep 2022, 12:35 PM
Mouhamed Bendakkoum
0
Instead of else and then an if why not an elif like this: elif bmi < 25: print ('Normal') And all printed words should start with a capital to pass the test.
6th Sep 2022, 2:22 AM
Paul
Paul - avatar