mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
Minor clarification in tutorial.
This commit is contained in:
parent
00538ffe3a
commit
40383c8f10
1 changed files with 3 additions and 0 deletions
|
@ -78,6 +78,9 @@ slice notation makes this especially convenient::
|
|||
>>> words
|
||||
['defenestrate', 'cat', 'window', 'defenestrate']
|
||||
|
||||
With ``for w in words:``, the example would attempt to create an infinite list,
|
||||
inserting ``defenestrate`` over and over again.
|
||||
|
||||
|
||||
.. _tut-range:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue