weight=int(input("Your weight in lbs: "))height=int(input("Your height in inches: "))bmi=weight/(height*height)*703answer="Your BMI is: {} "youAre="Sorry, you are "ifbmi<=18.5:category="Underweight"elifbmi>18.5andbmi<=24.9:category="Normal range"youAre="You are in the "elifbmi>24.9andbmi<=29.9:category="Overwieght"elifbmi>29.9:category="Obese"print(answer.format(round(bmi,2)))print(youAre+category)
Comments (0)
HTTPSSSH
You can clone a snippet to your computer for local editing.
Learn more.