Skip to content

Commit 9fe1ad4

Browse files
committed
Merge pull request realpython#384 from rogererens/patch-1
Reset list 'a'
2 parents 8dc2f39 + 8fd4e45 commit 9fe1ad4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/writing/style.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,7 @@ Use :py:func:`enumerate` keep a count of your place in the list.
543543

544544
.. code-block:: python
545545
546+
a = [3, 4, 5]
546547
for i, item in enumerate(a):
547548
print i, item
548549
# prints

0 commit comments

Comments
 (0)