18th May 2020, 2:48 PM
Alen Antony
Alen Antony - avatar
2 Answers
+ 2
Print 'd' before the last line to understand it better. The dictionary 'c' is at index 2 and 3 is the key in that dictionary. So it results in the value at that key which is 2. You can try d[2][6] and it will give you a key error since there is no matching key in the dictionary.
18th May 2020, 3:56 PM
Avinesh
Avinesh - avatar
+ 1
Thanks
19th May 2020, 2:27 AM
Alen Antony
Alen Antony - avatar