From 8fd4e4586e70773aa705e1a0fd0fa85987d84862 Mon Sep 17 00:00:00 2001 From: rogererens Date: Wed, 19 Mar 2014 23:02:37 +0100 Subject: [PATCH] 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. --- docs/writing/style.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/writing/style.rst b/docs/writing/style.rst index 262d73471..cba3586be 100644 --- a/docs/writing/style.rst +++ b/docs/writing/style.rst @@ -543,6 +543,7 @@ Use :py:func:`enumerate` keep a count of your place in the list. .. code-block:: python + a = [3, 4, 5] for i, item in enumerate(a): print i, item # prints