turtle.setpos()

turtle.setpos(x, y=None)

Move turtle to an absolute position.

Aliases: setpos | setposition | goto:

Arguments: x – a number or a pair/vector of numbers y – a number None

call: goto(x, y) # two coordinates –or: goto((x, y)) # a pair (tuple) of coordinates –or: goto(vec) # e.g. as returned by pos()

Move turtle to an absolute position. If the pen is down, a line will be drawn. The turtle’s orientation does not change.

Example: >>> tp = pos() >>> tp (0.00, 0.00) >>> setpos(60,30) >>> pos() (60.00,30.00) >>> setpos((20,80)) >>> pos() (20.00,80.00) >>> setpos(tp) >>> pos() (0.00,0.00)