<prompt> Kujenga kazi ya mahesabu ya eneo la pembe tatu kwa kutumia Heron ya formula.  <response>: Heres an example of a Python function that calculates the area of a triangle using the Herons formula:pythondef heron_formulaa, b, c: s a b c 2 area s s - a s - b s - c 0.5 return areatriangle_area heron_formula3, 4, 5printThe area of the triangle is:, triangle_areaHerons formula states that the area of a triangle whose sides have lengths a, b, and c is:area sqrts s - a s - b s - cwhere s is the semiperimeter of the triangle; that is s a b c 2.In the example above, we define a function heron_formula that takes the lengths of the sides of the triangle as input arguments a, b, and c. Within the function, we calculate the semiperimeter s and the area of the triangle using Herons formula. Finally, the calculated area is returned from the function and can be printed or used in further calculations. 