From 5d8e110a7d9725b5a7d118734f546f4b8d8edf8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Wed, 27 Feb 2019 16:15:35 +0100 Subject: [PATCH] Named tuple --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 8289fb3..c404042 100644 --- a/README.md +++ b/README.md @@ -151,6 +151,9 @@ for i, el in enumerate( [, 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')