Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 239909d

Browse filesBrowse files
Alois MahdalAlois Mahdal
Alois Mahdal
authored and
Alois Mahdal
committed
Clarify presence of a two-element tuple.
1 parent 6b53b2f commit 239909d
Copy full SHA for 239909d

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎docs/writing/style.rst

Copy file name to clipboardExpand all lines: docs/writing/style.rst
+2-1Lines 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 you know that ``enumerate()``
277+
will provide a tuple of two elements for each item in list:
277278

278279
.. code-block:: python
279280

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.