Nesting A Python Dictionary
There will come a time when working with dictionaries that you will need to nest a dictionary in a dictionary or nest a list in a dictionary or some other data type in a dictionary. Understanding how nesting in a Python dictionary works will take you along the way in your programming career. Nesting is setting the same or different data type inside another data type in Python or any other language. Take a look at some examples of nesting in a Python dictionary.
Check out our full Python tutorial on nesting at http://mastercode.online/course/pro-python-programmer/curriculum/
source