BMI calculator for python assignment | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

BMI calculator for python assignment

Why doesn’t it work? #your code goes here weight = int(input()) height = int(input()) BMI = weight/height**2 print(BMI) if BMI < 18.5: print("Underweight") elif BMI >= 18.5 and BMI < 25: print("normal") elif BMI >= 25 and BMI < 30: print("Overweight") elif BMI >= 30: print("Obesity")

24th Jan 2022, 11:08 AM
Alharith Albayati
3 Answers
+ 2
# try weight = float(input()) height = float(input()) print ("Normal")
24th Jan 2022, 11:19 AM
SoloProg
SoloProg - avatar
+ 1
Thank you bro :)
24th Jan 2022, 11:29 AM
Alharith Albayati