Here is the completed code for this problem. Comments are included, go through it, learn how things work and let me know if you have any doubts or if you need anything to change. If you are satisfied with the solution, please rate the answer. Thanks
Note: Please maintain proper code spacing (indentation), just copy the code part and paste it in your compiler/IDE directly, no modifications required.
#code
#required method def triangle_area(vertices): #parsing each vertex into individual x,y coordinates x1, y1 = vertices[0] x2, y2 = vertices[1] x3, y3 = vertices[2] #applying the equation to find the area and returning it A = 0.5 * (x2 * y3 - x3 * y2 - x1 * y3 + x3 * y1 + x1 * y2 - x2 * y1) return A
Problem 3.5. Compute the area of an arbitrary triangle An arbitrary tri- angle can be described...