0
Can someone help me with the BMI calculator project in Beginners Python?
Just looking for someone to help me figure out what I'm doing wrong. I'm kind of a newbie and some guidance would be greatly appreciated! Thanks in advance! https://code.sololearn.com/cpVgM4pMJ440/?ref=app
7 odpowiedzi
+ 3
1. Because while statement has nothing to do with elif, you should use instead if statement.
2. Why you convert weight input to an integer.
+ 2
See yu have made many mistakes in it
https://code.sololearn.com/cYs21Ik77WTb/?ref=app
+ 1
Thanks for all the help, i will return with an updated and hopefully successful code!
+ 1
https://www.sololearn.com/discuss/2687547/?ref=app
https://www.sololearn.com/discuss/2686011/?ref=app
https://www.sololearn.com/discuss/2788765/?ref=app
https://www.sololearn.com/discuss/2795746/?ref=app
https://www.sololearn.com/discuss/2686226/?ref=app
https://www.sololearn.com/discuss/2892961/?ref=app
+ 1
Figured it out, code is below!
https://code.sololearn.com/cpVgM4pMJ440/?ref=app
0
Including ') in Obese
And also formula is weight / height ²
0
Code in not full. Truncated.
First declared variables and values then use those in finding calculations. Otherwise undefined error.
It's if-else blocks you need, ( while is a loop term)
And finally check the formula again for it's correctness. and words spell check with capitalizations in output
like ex : obesity or Obesity