File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1719,7 +1719,7 @@ def xcor(self):
1719
1719
>>> reset()
1720
1720
>>> turtle.left(60)
1721
1721
>>> turtle.forward(100)
1722
- >>> print turtle.xcor()
1722
+ >>> print( turtle.xcor() )
1723
1723
50.0
1724
1724
"""
1725
1725
return self ._position [0 ]
@@ -1733,7 +1733,7 @@ def ycor(self):
1733
1733
>>> reset()
1734
1734
>>> turtle.left(60)
1735
1735
>>> turtle.forward(100)
1736
- >>> print turtle.ycor()
1736
+ >>> print( turtle.ycor() )
1737
1737
86.6025403784
1738
1738
"""
1739
1739
return self ._position [1 ]
@@ -2336,7 +2336,7 @@ def isvisible(self):
2336
2336
2337
2337
Example (for a Turtle instance named turtle):
2338
2338
>>> turtle.hideturtle()
2339
- >>> print turtle.isvisible():
2339
+ >>> print( turtle.isvisible())
2340
2340
False
2341
2341
"""
2342
2342
return self ._shown
You can’t perform that action at this time.
0 commit comments