PyDocs

Nav

Graphical user interfaces with Tk

xcor

turtle

function
  • xcor()
Return the turtle’s x coordinate.
1 Example
>>> turtle.home()
>>> turtle.left(50)
>>> turtle.forward(100)
>>> turtle.pos()
(64.28,76.60)
>>> print(round(turtle.xcor(), 5))
64.27876
from the Python docs
See Also
No see-alsos for turtle/xcor
0 Notes
No notes for xcor