Output

Variable Name     Value in Memory
weight
height
KILOGRAMS_PER_POUND
METERS_PER_INCH
weightInKilograms
heightInMeters
bmi
  1  # Prompt the user to enter weight in pounds
  2  weight = float(input("Enter weight in pounds: "))
  3      
  4  # Prompt the user to enter height in inches
  5  height = float(input("Enter height in inches: "))
  6      
  7  KILOGRAMS_PER_POUND = 0.45359237 # Constant
  8  METERS_PER_INCH = 0.0254 # Constant 
  9      
 10  # Compute BMI
 11  weightInKilograms = weight * KILOGRAMS_PER_POUND 
 12  heightInMeters = height * METERS_PER_INCH
 13  bmi = weightInKilograms / (heightInMeters * heightInMeters)
 14  
 15  # Display result
 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")
            
An animated program with explanatory texts about specified elements.