Ad

Write a program that will calculate BMI.
(bmi = weight (kg) : height(m) * height(m). bmi < 25 or bmi = 25 - there is no excess weight, and bmi > 25 - there is excess weight.)

def bmi_calculator (weight, height):
    bmi = weight / (height ** 2)
    if bmi < 25:
        return "there is no excess weight"
    if bmi >= 25:
        return "there is excess weight"