mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 23:00:18 +00:00
Added missing call to enumerate.
This commit is contained in:
@@ -248,7 +248,7 @@ keep a count of your place in the list.
|
|||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
for i, item in a:
|
for i, item in enumerate(a):
|
||||||
print i + ", " + item
|
print i + ", " + item
|
||||||
# prints
|
# prints
|
||||||
# 0, 3
|
# 0, 3
|
||||||
|
|||||||
Reference in New Issue
Block a user