[Python-checkins] r82269 - python/branches/py3k/Doc/tutorial/controlflow.rst
georg.brandl
python-checkins at python.org
Sun Jun 27 12:59:19 CEST 2010
Author: georg.brandl
Date: Sun Jun 27 12:59:19 2010
New Revision: 82269
Log:
Wording fix.
Modified:
python/branches/py3k/Doc/tutorial/controlflow.rst
Modified: python/branches/py3k/Doc/tutorial/controlflow.rst
==============================================================================
--- python/branches/py3k/Doc/tutorial/controlflow.rst (original)
+++ python/branches/py3k/Doc/tutorial/controlflow.rst Sun Jun 27 12:59:19 2010
@@ -87,7 +87,6 @@
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 @@
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')::
More information about the Python-checkins
mailing list