Animations and Interactive Programming

Interactive Programming

Move the turtle to the position where the user clicks:

import turtle


turtle.setup(500, 500)
screen = turtle.Screen()
turtle.title("Turtle Keys")
turtle.pensize(3)

screen.onscreenclick(turtle.goto)

turtle.done()