May 2018
Intermediate to advanced
380 pages
9h 37m
English
It doesn't get much better than the official documentation, so here is an example from https://docs.python.org/3/library/collections.html#collections.namedtuple:
>>> from collections import namedtuple >>> Point = namedtuple("Point", ["x", "y"])
>>> p = Point(11, y=22)
>>> p[0] + p[1] 33
>>> x, y = p >>> x, y (11, 22)
>>> p.x + p.y 33