<prompt> Andika kazi ya mahesabu ya body mass index ya mtu.  <response>: Heres a Python function that calculates the body mass index BMI of a person:pythondef calculate_bmiweight: float, height: float - float: This function calculates the body mass index BMI of a person given their weight in kilograms and height in meters. bmi weight height 2 return roundbmi, 2The function takes two arguments: weight in kilograms and height in meters. It calculates the BMI using the formula BMI weightkg heightm2 and returns the result rounded to two decimal places. 