Tag: How to Initialize a Dictionary of Dictionaries in Python?
How to Initialize a Dictionary of Dictionaries in Python?
This tutorial will discuss about a unique way to initialize a dictionary of dictionaries in Python. Suppose we have two lists one is a list of keys and second is the inner keys. Like this, listOfKeys = [‘Atharv’, ‘Avisha’, ‘Kartik’, ‘Justin’] listOfInnerKeys = [‘Maths’, ‘Science’, ‘Social’, ‘English’] Now we want to initialise a dictionary of …
How to Initialize a Dictionary of Dictionaries in Python?Read More