Skip to content

Commit

Permalink
Fix print usage in turtle doctests (python#122940)
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored Aug 13, 2024
1 parent 906b796 commit 901d949
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Lib/turtle.py
Original file line number Diff line number Diff line change
Expand Up @@ -1718,7 +1718,7 @@ def xcor(self):
>>> reset()
>>> turtle.left(60)
>>> turtle.forward(100)
>>> print turtle.xcor()
>>> print(turtle.xcor())
50.0
"""
return self._position[0]
Expand All @@ -1732,7 +1732,7 @@ def ycor(self):
>>> reset()
>>> turtle.left(60)
>>> turtle.forward(100)
>>> print turtle.ycor()
>>> print(turtle.ycor())
86.6025403784
"""
return self._position[1]
Expand Down Expand Up @@ -2335,7 +2335,7 @@ def isvisible(self):
Example (for a Turtle instance named turtle):
>>> turtle.hideturtle()
>>> print turtle.isvisible():
>>> print(turtle.isvisible())
False
"""
return self._shown
Expand Down

0 comments on commit 901d949

Please sign in to comment.