I have a list of Python dictionaries with the same keys. I would like to create a big dictionary from the ones in the list. The thing is I cannot use update to create a new one because, as the keys are the same, the value for each key is overwritten in the process. A sample of my list is:
[{0: u'ChIJIxtmpVdCQg0R_TCH5ttvqC0',
1: u'ChIJ2RMaMThvQg0R_6hmMXFiG_M',
...
195: u'ChIJv1KfnmMpQg0R5iC9EmaXN6M',
196: u'ChIJd0vQCiOEQQ0RasOKsxksdys'},
{0: u'ChIJIxtmpVdCQg0R_TCH5ttvqC0',
1: u'ChIJ2RMaMThvQg0R_6hmMXFiG_M',
2: u'ChIJQ3PGOWlfQg0RkV-a6JQdrFs',
3: u'ChIJ-TjccjhvQg0RVQmnPNgAJv4',
...
100: u'ChIJN7zqEhgmQg0R-NzvqSYG_Ds',
101: u'ChIJPTR-xaYoQg0RUrX7K8kQhU4',
102: u'ChIJV_pHsIsoQg0ReGKLBXDqOc8',
103: u'ChIJtXpyqps7Qg0RXq37551oP4o',...
What I want is a bigger dictionary of the following form:
{0: u'ChIJIxtmpVdCQg0R_TCH5ttvqC0',
1: u'ChIJ2RMaMThvQg0R_6hmMXFiG_M',
2: u'ChIJQ3PGOWlfQg0RkV-a6JQdrFs',
3: u'ChIJ-TjccjhvQg0RVQmnPNgAJv4',
...
195: u'ChIJv1KfnmMpQg0R5iC9EmaXN6M',
196: u'ChIJd0vQCiOEQQ0RasOKsxksdys', ###HERE STARTS THE NEW DICT!!
197: u'ChIJIxtmpVdCQg0R_TCH5ttvqC0',
198: u'ChIJ2RMaMThvQg0R_6hmMXFiG_M',
199: u'ChIJQ3PGOWlfQg0RkV-a6JQdrFs',
...
Where the keys increase up to the number of instances among all the dictionaries.
Thanks in advance.