Help find the errors BMI | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Help find the errors BMI

height =int(input()) weight =float(input()) H =height W=weight**2 BMI = weight/height if BMI<18: #print(BMI) print('Underwight') elif 18>BMI<24: #print(BMI) print('Normal') elif BMI>24: #print(BMI) print('Obesity')

24th May 2022, 4:05 AM
Shadrack nonyane
2 Answers
+ 1
Shadrack nonyane Some of the problems. 1. Spell Underweight 2. What if BMI == 18 3. What if BMI == 24 4. What happened to Overweight There may be more, but I suggest you read the task very carefully
24th May 2022, 4:13 AM
Rik Wittkopp
Rik Wittkopp - avatar
0
Thank you
24th May 2022, 12:53 PM
Shadrack nonyane