Cody Bable

Generation

generate functionFri, 28 Apr 2023

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

def draw_point(): # draw the point turtle.pendown() turtle.circle(5) turtle.penup() def draw_path(): # draw the path turtle.pendown() turtle.goto(x, y) turtle.penup() def draw(x, y): draw_path() draw_point() turtle.onscreenclick(draw) turtle.listen()

Questions about programming?Chat with your personal AI assistant