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

Method ycor

Lib/turtle.py:1796–1808  ·  view source on GitHub ↗

Return the turtle's y coordinate --- No arguments. Example (for a Turtle instance named turtle): >>> reset() >>> turtle.left(60) >>> turtle.forward(100) >>> print(turtle.ycor()) 86.6025403784

(self)

Source from the content-addressed store, hash-verified

1794 return self._position[0]
1795
1796 def ycor(self):
1797 """ Return the turtle's y coordinate
1798 ---
1799 No arguments.
1800
1801 Example (for a Turtle instance named turtle):
1802 >>> reset()
1803 >>> turtle.left(60)
1804 >>> turtle.forward(100)
1805 >>> print(turtle.ycor())
1806 86.6025403784
1807 """
1808 return self._position[1]
1809
1810
1811 def goto(self, x, y=None):

Callers 5

test_gotoMethod · 0.80
test_teleportMethod · 0.80
test_resetMethod · 0.80
shiftMethod · 0.80
setbgcolorFunction · 0.80

Calls

no outgoing calls

Tested by 3

test_gotoMethod · 0.64
test_teleportMethod · 0.64
test_resetMethod · 0.64