Here is the two simple ways to merge dictionaries in python.
- Using update method
By using this method the second dictionary(new_adm) will be merged to the first one(default) and the update method will return None. - Using dict constructor
By using this method both first dictionary and second will be merged and stored in a third dictionary(resultant) and default and new_adm will remain unchanged.