- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies

- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

# Python program to calculate BMI(Body Mass Index) of your Body

We have to enter our height and weight. Our task is to calculate BMI using formula.

## Algorithm

Step 1: input height and weight of your body. Step 2: then applying the formula for calculation BMI. Step 3: display BMI.

## Example Code

height = float(input("Enter your height(m): ")) weight = float(input("Enter your weight(kg): ")) print("Your BMI is: ", round(weight / (height * height), 2))

## Output

Enter your height (m): 5.8 Input your weight (kg): 64 Your body mass index is: 1.9

- Related Articles
- C program to Calculate Body Mass Index (BMI)
- Java program to calculate Body Mass Index (BMI)
- A body of mass 25 kg has a momentum of 125 kg.m/s. Calculate the velocity of the body.
- Can a body have mass but no weight? Give reasons for your answer.
- When a force of $40 N$ is applied on a body it moves with an acceleration of $5 ms^{-2}$. Calculate the mass of the body.
- Does the acceleration produced in a freely falling body depend on the mass of the body?
- (a) Define mass of a body. What is the SI unit of mass?(b) Define weight of a body. What is the SI unit of weight?(c) What is the relation between mass and weight of a body?
- Calculate the kinetic energy of a body of mass $2 kg$ moving with a velocity of $0.1 ms^{-1}$.
- The rate of change of momentum of an object is proportional to I. Mass of the body II. Velocity of the body III. Net force applied on the body IV. None of these
- The velocity of a body of mass 10 kg increases from 4 m/s to 8 m/s when a force acts on it for 2 s. Calculate the applied force on the body.
- What will happen to the kinetic energy of a body if its mass is doubled ?
- Which is more fundamental, the mass of a body or its weight? Why?
- Rigid Body and Rigid Body Dynamics
- Does the increasing number of moles on your body indicate some illness?
- What happens to the momentum of the body when velocity is doubled and mass is halved?

Advertisements