mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 14:50:19 +00:00
Merge pull request #323 from AloisMahdal/i322
Clarify presence of a two-element tuple.
This commit is contained in:
@@ -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 ``enumerate()`` will provide
|
||||
a tuple of two elements for each item in list:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
|
||||
Reference in New Issue
Block a user