mirror of
https://github.com/python/cpython.git
synced 2025-10-02 13:22:19 +00:00
controlflow: Use full example for "5 through 9" (GH-5907)
Replace example result of "5 through 9" with complete list: "5, 6, 7, 8, 9".
This format is more consistent with the surrounding examples.
(cherry picked from commit 83d7062d2d
)
Co-authored-by: Steven M. Vascellaro <S.Vascellaro@gmail.com>
This commit is contained in:
parent
5506d60302
commit
3ca5efcef5
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ 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')::
|
||||||
|
|
||||||
range(5, 10)
|
range(5, 10)
|
||||||
5 through 9
|
5, 6, 7, 8, 9
|
||||||
|
|
||||||
range(0, 10, 3)
|
range(0, 10, 3)
|
||||||
0, 3, 6, 9
|
0, 3, 6, 9
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue