Tom Kuegler you were dropping so many gems in this article that I had to pen some of them down.
“Treat the first few people who pay attention to you like gold… Smile. Go the extra mile.”
“Experimentation is crucial to find the sweet spot of anything.”
I loved this part. I often come across articles which boast of the ultimate success. Once you achieve it, nothing and nobody stands in your way. Nothing could be further from truth!
Every success just levels you up and prepares you for often more complex problems. Just like Mario, the boss character gets more difficult to…
Archiving this for inspiration sir. Interesting topic, well articulated and researched. Thank you.
Yes, Counts are always displayed in descending order of frequency. For example, you pass as argument ‘Hello World’ to a Counter() object. You would get the most frequent element, ‘l’ in this case first, then ‘o’, then everything else.
I do feel that getsizeof() is not extremely straightforward as it should be.
But, you are wrong on one aspect. It does give different values for different dictionaries.
The memory taken by a dictionary is dependent upon the number of (key,value) pairs it needs to store. Python initially keeps enough…