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 @@ -1718,7 +1718,7 @@ def xcor(self):
1718
1718
>>> reset()
1719
1719
>>> turtle.left(60)
1720
1720
>>> turtle.forward(100)
1721
- >>> print turtle.xcor()
1721
+ >>> print( turtle.xcor() )
1722
1722
50.0
1723
1723
"""
1724
1724
return self ._position [0 ]
@@ -1732,7 +1732,7 @@ def ycor(self):
1732
1732
>>> reset()
1733
1733
>>> turtle.left(60)
1734
1734
>>> turtle.forward(100)
1735
- >>> print turtle.ycor()
1735
+ >>> print( turtle.ycor() )
1736
1736
86.6025403784
1737
1737
"""
1738
1738
return self ._position [1 ]
@@ -2335,7 +2335,7 @@ def isvisible(self):
2335
2335
2336
2336
Example (for a Turtle instance named turtle):
2337
2337
>>> turtle.hideturtle()
2338
- >>> print turtle.isvisible():
2338
+ >>> print( turtle.isvisible())
2339
2339
False
2340
2340
"""
2341
2341
return self ._shown
You can’t perform that action at this time.
0 commit comments