Let\'s say I have the following list of python dictionary:
dict1 = [{\'domain\':\'Ratios\'},{\'domain\':\'Geometry\'}]
and a list like:
Using list comprehension will be the pythonic way to do it.
[data.update({'count': list1[index]}) for index, data in enumerate(dict1)]
The dict1 will be updated with the corresponding value from list1.
dict1
list1