You are viewing a single comment's thread from:

RE: Python Tips 6 - Collections : Container Datatype

in STEMGeeks5 years ago

It's not exactly that.

value is a key and the count is the value in Counter. Counter is a kind of dict, if that help you visualize.

if you want to see how it's done => https://github.com/python/cpython/blob/c77f71f9819022fa3adeb2f710e564a392ff24c6/Lib/collections/init.py#L489