Commit 057cb268 authored by Georg Brandl's avatar Georg Brandl

Wording fix.

parent b8f28cec
...@@ -87,7 +87,6 @@ The :func:`range` Function ...@@ -87,7 +87,6 @@ The :func:`range` Function
If you do need to iterate over a sequence of numbers, the built-in 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:: :func:`range` comes in handy. It generates arithmetic progressions::
>>> for i in range(5): >>> for i in range(5):
... print(i) ... print(i)
... ...
...@@ -97,9 +96,7 @@ If you do need to iterate over a sequence of numbers, the built-in function ...@@ -97,9 +96,7 @@ If you do need to iterate over a sequence of numbers, the built-in function
3 3
4 4
The given end point is never part of the generated sequence; ``range(10)`` generates
The given end point is never part of the generated list; ``range(10)`` generates
10 values, the legal indices for items of a sequence of length 10. It 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 is possible to let the range start at another number, or to specify a different
increment (even negative; sometimes this is called the 'step'):: increment (even negative; sometimes this is called the 'step')::
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment