How can I turn a list of dicts like this..

[{'a':1}, {'b':2}, {'c':1}, {'d':2}]

…into a single dict like this:

{'a':1, 'b':2, 'c':1, 'd':2}

10 Answers
10

Leave a Reply

Your email address will not be published. Required fields are marked *