Cody Bable

Generation

generate functionFri, 28 Apr 2023

create a function to redraw the drawing in turtle from user mouse clicks

def redraw(x, y): turtle.clear() turtle.goto(x, y) # draw to new position turtle.onscreenclick(redraw)

Questions about programming?Chat with your personal AI assistant