If you work with python you probably used tuples at some point, but his cousin is less known. Named tuple are lightweight object types, similar to struct, or record types but immutable. Let’s check an example: >>> from collections import namedtuple
>>> Point = namedtuple("Point", ["x", "y"])
>>> p1 = Point(4…