weight = int(input("Enter your weight:")) height = float(input("Enter your height:")) if height > 3 and height < 7: height = round(height/3.281, 2) elif height > 50 and height < 200: height = round(height/100, 3) bmi = round(float(weight/(height**2)), 2) print("Your BMI is", bmi)