Answer
Enter your weight in pounds: 95.5
Enter your height is inches: 50
Your BMI is: 26.8573
Work Step by Step
We can write the program to calculate BMI as follows:
1. weight=eval(input("Enter your weight in pounds: "))
2. height=eval(input("Enter your height in inches: "))
3. weight*=0.45359237
4. height*=0.0254
5. BMI=weight/height**2
6. print ("Your BMI is: ", BMI)
The user is asked to enter his weight and height in pounds and inches respectively. The weight is converted to kilograms and the height is converted into meters. Then, the BMI is calculated and the result is displayed.