summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial/controlflow.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-06-27 10:59:19 (GMT)
committerGeorg Brandl <georg@python.org>2010-06-27 10:59:19 (GMT)
commit7d82106acdbe5bda026246e29383808d58c56fd0 (patch)
treea348186df4d606b91481a43d4cc19e77d702d9bb /Doc/tutorial/controlflow.rst
parenteb1f4aa2321e5ac19e3139858c09e5b1c7acc668 (diff)
downloadcpython-7d82106acdbe5bda026246e29383808d58c56fd0.zip
cpython-7d82106acdbe5bda026246e29383808d58c56fd0.tar.gz
cpython-7d82106acdbe5bda026246e29383808d58c56fd0.tar.bz2
Wording fix.
Diffstat (limited to 'Doc/tutorial/controlflow.rst')
-rw-r--r--Doc/tutorial/controlflow.rst5
1 files changed, 1 insertions, 4 deletions
diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst
index 8a2d645..bd88ad6 100644
--- a/Doc/tutorial/controlflow.rst
+++ b/Doc/tutorial/controlflow.rst
@@ -87,7 +87,6 @@ The :func:`range` Function
If you do need to iterate over a sequence of numbers, the built-in function
:func:`range` comes in handy. It generates arithmetic progressions::
-
>>> for i in range(5):
... print(i)
...
@@ -97,9 +96,7 @@ If you do need to iterate over a sequence of numbers, the built-in function
3
4
-
-
-The given end point is never part of the generated list; ``range(10)`` generates
+The given end point is never part of the generated sequence; ``range(10)`` generates
10 values, the legal indices for items of a sequence of length 10. It
is possible to let the range start at another number, or to specify a different
increment (even negative; sometimes this is called the 'step')::