How to set default values to a Dictionary in Python

Python Dict setdefault(): The setdefault() method returns the value of the given key from the dictionary. However, it adds a