We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d252d78 commit 963ab0aCopy full SHA for 963ab0a
1 file changed
docs/writing/style.rst
@@ -548,11 +548,11 @@ keep a count of your place in the list.
548
.. code-block:: python
549
550
for i, item in enumerate(a):
551
- print i + ", " + item
+ print i, item
552
# prints
553
- # 0, 3
554
- # 1, 4
555
- # 2, 5
+ # 0 3
+ # 1 4
+ # 2 5
556
557
The ``enumerate`` function has better readability than handling a counter
558
manually. Moreover,
0 commit comments