Browse Source

Named tuple

pull/27/head
Jure Šorn 6 years ago
parent
commit
5d8e110a7d
1 changed files with 3 additions and 0 deletions
  1. 3
      README.md

3
README.md

@ -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')

Loading…
Cancel
Save