Cody Bable

Generation

code to explanationFri, 28 Apr 2023

tess.clear() for c in range(len(coordinates) - 1): x, y = coordinates[c] #store coordinates from the initial start x2, y2 = coordinates[c + 1] # tess.pendown() tess.goto(x, y) tess.pendown() tess.goto(x2, y2)

The code above will pick up the pen, and go to the coordinates of the first point it finds, then the pen will be dropped, and the turtle will go to the next point.

Questions about programming?Chat with your personal AI assistant