Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/writing/style.rst
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ Unpacking
~~~~~~~~~

If you know the length of a list or tuple, you can assign names to its
elements with unpacking:
elements with unpacking. For example, since you know that ``enumerate()``
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete "you know that" so it just says "For example, since enumerate() will provide..."

will provide a tuple of two elements for each item in list:

.. code-block:: python

Expand Down