question archive Formula for body mass index (BMI): weight 1o3 height* x703 Write a Python Program that asks the user for weight and height and then displays weight class based on BMI (use the table below for this)
Subject:Computer SciencePrice:2.85 Bought3
Formula for body mass index (BMI): weight 1o3 height* x703 Write a Python Program that asks the user for weight and height and then displays weight class based on BMI (use the table below for this). Weight class underweight normal BMI below 18.5 18.5-24.9 25.0-29.9 overweight 30.0 and up Very overweight
def main(): weight = float(input("Enter weight: ")) height = float(input("Enter height: ")) bmi = (weight / (height**2)) * 703 if bmi < 18.5: print("underweight") elif bmi < 25: print("normal") elif bmi < 30: print("overweight") else: print("Very overweight") main()
please see the attached file for complete solution