Python program for bmi calculation; Through this tutorial, i am going to show you how to calculate bmi in python.

In this tutorial, i will use the formula to calculate BMI is $weight (kg)/{height (m)}^2$.

### Python Program for BMI Calculation

- Take input values from user and convert it to float.
- Next use the BMI formula, which is weight/(height**2).
- Print the result.

# take inputs from the user height = float(input("Enter height in meters: ")) weight = float(input("Enter weight in kg: ")) # the formula for calculating bmi bmi = weight/(height**2) # print result print("Your BMI is: {0} ".format(bmi))

**Output**

Enter height in meters: 1.89 Enter weight in kg: 65 Your BMI is: 18.19657904313989

## Recommended Python Tutorials

**Recommended:-**Python Program to Add Two Numbers

**Recommended:-**Python Program to Calculate Simple Interest

**Recommended:-**Python Program to Find Average of n Numbers

**Recommended:-**Python Program to ASCII Value of Character

**Recommended:-**Python Program to Calculate Compound Interest

**Recommended:-**Python Program to Check Leap Year

**Recommended:-**Python Program To Print Number Pattern

**Recommended:-**Python Program to Print Star Pattern

**Recommended:-**Python Program Calculate Sum of n Numbers

**Recommended:-**Python Program to Reverse Numbers

**Recommended:-**Python Program to Find Largest of n Numbers

**Recommended:-**Python Program to Find Power of Number

**Recommended:-**Python Program to Print Prime Number From 1 to N

**Recommended:-**Python Program to Find Square Root of Number

**Recommended:-**Python Program to Find Cube of Number

**Recommended:-**Python Palindrome Program