Skip to content

Commit 8fd4e45

Browse files
committed
Reset list 'a'
The result of the previous block containing the map example left 'a' to be [6, 7, 8], so resetting 'a' back to [3, 4, 5] seems to keep the example in line with the other ones.
1 parent 8dc2f39 commit 8fd4e45

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)