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)

Want to kickstart your project?Use the new AI Studio to create your code