turtle how to use code example
Example 1: turtle python
>>> tp = turtle.pos()
>>> tp
(0.00,0.00)
>>> turtle.setpos(60,30)
>>> turtle.pos()
(60.00,30.00)
>>> turtle.setpos((20,80))
>>> turtle.pos()
(20.00,80.00)
>>> turtle.setpos(tp)
>>> turtle.pos()
(0.00,0.00)
Example 2: how to setup Turtle python
import turtle
win = turtle.Screen()
win.bgcolor("black")
win.setup(Height=800, length=500)
win.title("setup")