4. Nesting of dictionary allows you to store a dictionary inside another dictionary. Then why is following code raising error ? What can you do to correct it?
dict1 = { (1, 2) : [1, 2], (3, 4) : [3, 4] } dict2 = { ([1], [2]) : [1, 2], ([3], [4]) : [3, 4]]} dict1 will be created successfully while dict2 will give errors because its keys contain tuples which contain lists inside them. Tuples which are being used as a key