If you ever need to calculate Body Mass Index (BMI) in Python, here’s how…
def bmi_calc(height, weight):
# height is in inches
# weight is in pounds (lbs.)
bmi=(float(weight) * 703) / (float(height) * float(height))
bmi="%.1f" %(bmi)
return bmi
-acv
