namedtuple()factory function for creating tuple subclasses with named fields
dequelist-like container with fast appends and pops on either end
ChainMapdict-like class for creating a single view of multiple mappings


Returns a new tuple subclass named typename. The new subclass is used to create tuple-like objects that have fields accessible by attribute lookup as well as being indexable and iterable.


collections — Container datatypes — Python 3.10.7 documentation
A sorted dictionary. See also: Python Datatypes and Storage

  • popitem(last=True)
  • move_to_end(keylast=True)