+ 2

Some one please help me to correct my python code

height=float(input()) weight=float(input()) bmi=weight/height**2 if bmi <18.5: print("Underweight") elif bmi>=18.5 or bmi <25: print("Normal") elif bmi>=25 or bmi<30: print("Overweight") else: print("Obesity")

19th Jul 2022, 11:06 AM
LANS MOTIVA
LANS MOTIVA - avatar
2 ответов
+ 2
* First input is weight and second input is height.. * use and instead of or.
19th Jul 2022, 11:35 AM
Jayakrishna 🇮🇳
+ 1
Thank you bro🥂it works
19th Jul 2022, 11:37 AM
LANS MOTIVA
LANS MOTIVA - avatar