Cody Bable

Generation

generate functionFri, 28 Apr 2023

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

def onclick(x, y): # clear the screen t.clear() t.penup() t.goto(x, y) t.pendown() t.dot() screen.onclick(onclick)

Questions about programming?Chat with your personal AI assistant