Python has many data structures that can help you to make your code easier to understand. The default dict is one of my favorite ones, and the one I probably use most on my code. It's a dictionary that basically initializes the value of a given key to something that you can pass in as a function. And then whenever you would like access a given value for a key, an addiction, it will have created an empty list if there has been no value in it already.