Python: Basic: Triangle Area

Write the function triangle_area that takes 3 sides of a triangle and return the area of the triangle. The area of triangle with 3 sides can be calculated using Heron's formula which is explained here.


triangle_area(3, 4, 5) -> 6
triangle_area(4, 13, 15) -> 24

Test 1    

Test 2    

Test 3    

Test 4