Skip to content

Commit 0c986db

Browse files
committed
Merge pull request realpython#323 from AloisMahdal/i322
Clarify presence of a two-element tuple.
2 parents 6b53b2f + f32ef5f commit 0c986db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/writing/style.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,8 @@ Unpacking
273273
~~~~~~~~~
274274

275275
If you know the length of a list or tuple, you can assign names to its
276-
elements with unpacking:
276+
elements with unpacking. For example, since ``enumerate()`` will provide
277+
a tuple of two elements for each item in list:
277278

278279
.. code-block:: python
279280

0 commit comments

Comments
 (0)