Kokoma mwa milɔngɔ ya code mpo na fonction moko mpo na kosala calcul ya etando ya triangle.
 Tala ndakisa ya fonction Python oyo e calculer etando ya triangle na kosalelaka base na hauteur: ```python def triangle_area(base, height): area = 0.5 * base * height return area ``` Pona kosalela fonction oyo, okobenga yango boye: ```python base = 10 height = 5 area = triangle_area(base, height) print(f"Etando ya triangle ezali {etando}") # Sortie: Etando ya triangle ezali 25.0 ```