Body Mass Index (BMI)
BMI is a measure to know about the condition of your weight. Are your weight healthy or not?


Python code to measure BMI:
# By measuring BMI, you can know that are your weight healthy
# 1 feet = 12 inch or 30.48cm or 0.3048m
# 1 inch = 2.54cm or 0.0254m
# 1cm = 0.01m or 1m = 100cm
# multiply your height to convert into meter
weight = float(input('Enter your weight in kg : '))
height = float(input('Enter your height in meter : '))
BMI = weight/height**2
print('Your BMI is : ',BMI)
if BMI<18.5:
print('You are in underweight range')
elif 18.5<=BMI<24.9:
print('You are in healthy weight range')
elif 24.9<=BMI<29.9:
print('You are in overweight range')
else:
print('You have obesity disease')
Reference:
Body Mass Index (BMI)
Reviewed by Ikram
on
12/20/2019 10:01:00 AM
Rating:
No comments: