# BMI.py print("BMI calculator") unit_type = input("Metric (m) or USA (u) units? ") if unit_type == 'm': kg = eval(input("Enter the weight in kg: ")) cm = eval(input("Enter the height in cm: ")) m = cm / 100 bmi = kg / m**2 else: lbs = eval(input("Enter the weight in pounds: ")) ft,ins = map(eval,(input("Enter the height in feet and inches (2 nos.): ").split())) inches = ft*12 + ins bmi = 703 * lbs / inches**2 print("The BMI is", bmi)