Python supports a type of container like dictionaries called “namedtuple()” present in the module, “collections“. Like dictionaries, they contain keys that are hashed to a particular value.
But on contrary, it supports both access from key-value and iteration, the functionality that dictionaries lack.
Namedtuple in Python : https://www.geeksforgeeks.org/namedtuple-in-python/