Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 40383c8

Browse files
committed
Minor clarification in tutorial.
1 parent 00538ff commit 40383c8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Doc/tutorial/controlflow.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ slice notation makes this especially convenient::
7878
>>> words
7979
['defenestrate', 'cat', 'window', 'defenestrate']
8080

81+
With ``for w in words:``, the example would attempt to create an infinite list,
82+
inserting ``defenestrate`` over and over again.
83+
8184

8285
.. _tut-range:
8386

0 commit comments

Comments
 (0)