0
BMI calculator(module 4)
I don't understand why these won't work weight =float(input()) height =float(input()) bmi = weight/(height**2) if (bmi < 18.5): print("Underweight") elif(bmi >= 18.5): print("Normal") elif(bmi == 25): print("Normal") elif(bmi <= 25): print("Overweight") elif(bmi == 30): print("Overweight") elif(bmi >= 30): print("Obesity")
2 Answers
+ 1
Kunl_e
Use search option to get solution:
https://www.sololearn.com/discuss/2687547/?ref=app
https://www.sololearn.com/discuss/2686011/?ref=app
https://www.sololearn.com/discuss/2776665/?ref=app
https://www.sololearn.com/discuss/2686254/?ref=app
https://www.sololearn.com/discuss/2750158/?ref=app
https://www.sololearn.com/discuss/2788765/?ref=app
https://www.sololearn.com/discuss/2686226/?ref=app
https://www.sololearn.com/discuss/2838021/?ref=app
+ 1
Check your logic again..
Only 1st if or 1st elif works for any input.. next elif conditions are useless. Never going to work.. try to redesign logic..