How is counter implemented? | Sololearn: Learn to code for FREE!


How is counter implemented?

Counter is a sublass of dict. I wanted to see, how it is implemented. I see initialization but don't understand. How is Counter("12") implemented?

3/4/2021 12:35:41 PM

Oma Falk

4 Answers

New Answer


please clarify your question, the following was enough for me: from collections import Counter print(help(Counter))


hey frogged/oma, i admire your codes on sololearn. are you looking for the source code? it may have to do with ‘super’ keyword and inheretance. the super keyword means that it inherets dictionary’s properties and methods i think? idk, may be out of my league a bit


print ('am new here someone help me')


Add me up on WhatsApp 09057616051