An Alternative to Python Dictionaries
Why you should use defaultdict in Python
Published in
4 min readApr 6, 2021
Here’s the situation:
We have a list of numbers and we want to find the number of occurrences of each number in the list.
Here’s the situation:
We have a list of numbers and we want to find the number of occurrences of each number in the list.
Enjoys creating software that make tasks simpler. Always trying to gain new knowledge and expertise.