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