The core of the Python data model architecture is special methods (also known as "magic methods"). These methods, which start and end with double underscores, such as __init__, __getitem__, and __len_ ...
When classes are more structure than you need, tuples let you specify simple type-safe aggregates of other data types. They'll also let you create a dictionary collection…but it won't be type-safe. In ...