#Compute the area of a triangle, given the co-ordinates of its
#vertices (or, in a slightly simpler version, given the lengths
#of its sides.)
#The function area takes the lengths of the sides as parameters
#and returns the area of the triangle.
def area(a,b,c):
return 0 #you will replace this line
#The function distance returns the distance between
#the points (x1,y1) and (x2,y2).
def distance(x1,y1,x2,y2):
return 0 #you will replace this line
#Main program section:
#Depending on which version of the problem you work,
#this will either query the user to enter the three
#side lengths, or the six coordinates of the vertices,
#and then print the area of the triangle, using the
#functions above.