import turtle #import example=turtle.Turtle() example_y = example.ycor #ycor returns the y position of your turtle object