File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -50,9 +50,10 @@ Let's make a new version of ``forward()``. One that will turn the turtle
5050around if it tries to go further than 100 from the origin. We'll need
5151a ``while `` loop, and some new turtle functions:
5252
53- * ``turtle.distance(0,0) `` - Distance of the turtle from the origin
54- * ``turtle.towards(0,0) `` - The angle to get back to origin
55- * ``turtle.setheading(angle) `` - Directly sets the turtle direction
53+ * ``turtle.distance(0, 0) `` - Returns the distance of the turtle from
54+ the origin (0, 0)
55+ * ``turtle.towards(0, 0) `` - Returns the angle to get back to origin (0, 0)
56+ * ``turtle.setheading(angle) `` - Directly sets the turtle's direction
5657
5758You could try playing with a turtle in the interpreter and using these
5859functions to check exactly what they do, if you like.
You can’t perform that action at this time.
0 commit comments