Return the turtle's current location (x,y), as a Vec2D-vector. Aliases: pos | position No arguments. Example (for a Turtle instance named turtle): >>> turtle.pos() (0.00, 240.00)
(self)
| 1700 | self._rotate(angle) |
| 1701 | |
| 1702 | def pos(self): |
| 1703 | """Return the turtle's current location (x,y), as a Vec2D-vector. |
| 1704 | |
| 1705 | Aliases: pos | position |
| 1706 | |
| 1707 | No arguments. |
| 1708 | |
| 1709 | Example (for a Turtle instance named turtle): |
| 1710 | >>> turtle.pos() |
| 1711 | (0.00, 240.00) |
| 1712 | """ |
| 1713 | return self._position |
| 1714 | |
| 1715 | def xcor(self): |
| 1716 | """ Return the turtle's x coordinate. |