Skip to content

Commit 2569860

Browse files
committed
Clarify the language used to describe some turtle functions
1 parent 14d42f9 commit 2569860

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

source/conditional_loops.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,10 @@ Let's make a new version of ``forward()``. One that will turn the turtle
5050
around if it tries to go further than 100 from the origin. We'll need
5151
a ``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

5758
You could try playing with a turtle in the interpreter and using these
5859
functions to check exactly what they do, if you like.

0 commit comments

Comments
 (0)