Python
user_weight = float(input("? Enter your weight in kgs\n> "))
user_height = float(input("? Enter your height in metres\n> "))

def BMI_calculator(weight, height):
    return weight / height ** 2

def BMI_scale(weight, height):
    bmi = BMI_calculator(weight, height)
    if bmi < 18.5:
        return "Under weight"
    elif bmi < 24.9:
        return "Healthy"
    elif bmi < 30:
        return "Over weight"
    else:
        return "Obesity"
    
print(f"\nYour BMI is {BMI_scale(user_weight, user_height)}")
Your BMI is Under weight