Modify the polygon program to create a triangle. Replace thesquare function call in the random pattern program with thetriangles function calls.
def drawPolygon(turtle, vertices): “Draws a polygon from a list of vertices The list has the form [(xl, yl), , (xn. yn)1. turtle.up() (x, y)-verticest-1 turtle.move(x, y) turtle. down() for (x, y) in vertices turtle.move(x,
OR
OR