MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / ycor

Method ycor

Python/Turtle.py:1627–1639  ·  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

1625 return self._position[0]
1626
1627 def ycor(self):
1628 """ Return the turtle's y coordinate
1629 ---
1630 No arguments.
1631
1632 Example (for a Turtle instance named turtle):
1633 >>> reset()
1634 >>> turtle.left(60)
1635 >>> turtle.forward(100)
1636 >>> print turtle.ycor()
1637 86.6025403784
1638 """
1639 return self._position[1]
1640
1641
1642 def goto(self, x, y=None):

Callers 5

paddle_a_upFunction · 0.80
paddle_a_downFunction · 0.80
paddle_b_upFunction · 0.80
paddle_b_downFunction · 0.80
pong.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected