I have several dictionaries like this
dict1 = {0: 33.422, 1: 39.2308, 2: 30.132}
dict2 = {0: 42.2422, 1: 43.342, 2: 42.424}
dict3 = {0: 13.422, 1: 9.2308, 2: 20.132}
I am aware that I could combine them together into one dictionary using the code
dicts = dict1, dict2, dict3
And it returns the result like this
({0: 33.422, 1: 39.2308, 2: 30.132}, {0: 42.2422, 1: 43.342, 2: 42.424}, {0: 13.422, 1: 9.2308, 2: 20.132})
However, what if the dictionaries come sequentially? How can I get the same results? I tried the following code
dicts = {}
dicts = dicts, dict1
dicts = dicts, dict2
dicts = dicts, dict3
But it returns the result like this
((({}, {0: 33.422, 1: 39.2308, 2: 30.132}), {0: 42.2422, 1: 43.342, 2: 42.424}), {0: 13.422, 1: 9.2308, 2: 20.132})
How can we remove the first stuff? I'm using python 3 on windows 7. And all the dictionaries are in a "MyDataFileReader" type under avro package.