merge two dictionory of lists code example
Example 1: python 3 how to set a dictionary from two lists
mydict = dict(zip(list1, list2))
Example 2: merge a list of dictionaries python
>>> from collections import ChainMap
>>> a = [{'a':1},{'b':2},{'c':1},{'d':2}]
>>> dict(ChainMap(*a))
{'b': 2, 'c': 1, 'a': 1, 'd': 2}