[Solved] Writing basic BMI analysis program for python


your code should be like this:

def calcBMI(weightlb, heightin):
   bmi = weightlb * 703/ heightin **2
   return bmi

def main():
    weightlb = float(input("Enter your weight in pounds: "))
    heightin = float(input("Enter your height in inches: "))`
    bmi = calcBMI(weightlb, heightin)
    print("Your BMI is %f" %bmi)

main()

1

solved Writing basic BMI analysis program for python