+ 1

hi friends, could you help me figure out what's wrong with this code? It's the 23rd python exercise for beginners

This is my code https://code.sololearn.com/cBD11T6RjC3b/?ref=app

24th Oct 2021, 1:14 AM
Kelbis Hernandez
Kelbis Hernandez - avatar
2 Réponses
+ 2
You didn't convert the height from centimetres (input units I gave) to meters(which is the unit used in the formula you used). Here's your code fixed https://code.sololearn.com/cv4Zu572nCJp/?ref=app Also, the correct spelling for hight is height =)
24th Oct 2021, 1:37 AM
Rishi
Rishi - avatar
+ 2
Your code ignores bmi values between 24.9 and 25 as well as between 29.9 and 30. Also "Normal", "Overweight", and "Obesity" have to start with a capital letter to pass the solo learn test cases.
24th Oct 2021, 2:01 AM
Simon Sauter
Simon Sauter - avatar