icon: package
collections.Counter(iterable)Return a dict containing the counts of each element in iterable.
collections.dequeA double-ended queue.
collections.defaultdictA dictionary that returns a default value when a key is not found.
:::code source="../../python/collections.py" :::