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

+4

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? https://code.sololearn.com/cXZAn8QHk11T/?ref=app

3/4/2021 12:35:41 PM

Oma Falk

4 Answers

New Answer

+2

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

0

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

-2

print ('am new here someone help me')

-2

Add me up on WhatsApp 09057616051