+ 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
4 Answers
+ 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