https://tutorial.eyehunts.com/python/python-dict-setdefault-function-example-code/
Python dict setdefault function | Example code