|
|
@ -151,6 +151,9 @@ for i, el in enumerate(<collection> [, i_start]): |
|
|
|
|
|
|
|
Named Tuple |
|
|
|
----------- |
|
|
|
* **Tuple is an immutable and hashable list.** |
|
|
|
* **Named tuple is a subclass of tuple with named elements.** |
|
|
|
|
|
|
|
```python |
|
|
|
>>> from collections import namedtuple |
|
|
|
>>> Point = namedtuple('Point', 'x y') |
|
|
|