Fireye
Fireye

Reputation: 59

How do I find the x and y coordinates of the turtle in the turtle graphics module?

I want a more efficient way of finding the x and y coordinates of the turtle instead of just counting.

Upvotes: 0

Views: 2528

Answers (1)

Jae Yang
Jae Yang

Reputation: 539

There is a built in turtle function to find current position.

>>>turtle.pos()
(440.00,-0.00)

It will return the current location (x,y) as a Vec2D Vector.

Upvotes: 1

Related Questions