Answers for "how to create a bmi calculator in python"

3

how to make bmi calculator in python

weight = float(input('What is your weight? (Kg) '))
height = float(input('What is your height? (Mtr) '))
bmi = weight/(height*height)

if bmi <= 18.5:
    print('Your BMI is', bmi, 'which means you are underweight')

elif 18.5 < bmi < 25:
    print('Your BMI is', bmi,'which means you are normal')

elif 25 < bmi < 30:
    print('your BMI is', bmi,' which means you are overweight')

elif bmi > 30:
    print('Your BMI is', bmi,'which means you are obese')
Posted by: Guest on May-29-2020
2

simple bmi calculator using python

Hight = float(input("What is Your Hight in m:- "))
weight = float(input("What is your weight in kg:- "))
calculator = weight/Hight ** 2
print(calculator)
Posted by: Guest on July-26-2021

Code answers related to "how to create a bmi calculator in python"

Python Answers by Framework

Browse Popular Code Answers by Language