Output
Variable Name   Value in Memory
1
2 weight = float(input("Enter weight in pounds: "))
3
4
5 height = float(input("Enter height in inches: "))
6
7 KILOGRAMS_PER_POUND = 0.45359237
8 METERS_PER_INCH = 0.0254
9
10
11 weightInKilograms = weight * KILOGRAMS_PER_POUND
12 heightInMeters = height * METERS_PER_INCH
13 bmi = weightInKilograms / (heightInMeters * heightInMeters)
14
15
16 print("BMI is", bmi)
17 if bmi < 18.5:
18 print("Underweight")
19 elif bmi < 25:
20 print("Normal")
21 elif bmi < 30:
22 print("Overweight")
23 else:
24 print("Obese")