MCPcopy Index your code
hub / github.com/python/cpython / pos

Method pos

Lib/turtle.py:1769–1780  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

1767 self._rotate(angle)
1768
1769 def pos(self):
1770 """Return the turtle's current location (x,y), as a Vec2D-vector.
1771
1772 Aliases: pos | position
1773
1774 No arguments.
1775
1776 Example (for a Turtle instance named turtle):
1777 >>> turtle.pos()
1778 (0.00, 240.00)
1779 """
1780 return self._position
1781
1782 def xcor(self):
1783 """ Return the turtle's x coordinate.

Callers 1

writeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected