<prompt> Kujenga kazi ambayo itakuwa mahesabu ya eneo la pembe tatu.  <response>: Here is a simple Python function that calculates the area of a triangle given the lengths of its three sides using Herons formula:pythondef area_of_triangleside1, side2, side3: Calculate the area of a triangle given the lengths of its sides Args: side1: float, the length of one side of the triangle side2: float, the length of another side of the triangle side3: float, the length of the third side of the triangle Returns: float, the area of the triangle Calculate the semi-perimeter of the triangle s side1 side2 side3 2 Calculate the area using Herons Formula area s s - side1 s - side2 s - side3 0.5 return areaThis function can be used to calculate the area of any triangle, provided that the lengths of its sides are known. To use the function, simply call it with the desired arguments, like so:python Calculate the area of a triangle with sides of length 3, 4, and 5area area_of_triangle3, 4, 5 Print the resultprintarea 6.0 