merged all dictionaries in a list python

>>> result = {}
>>> for d in L:
...    result.update(d)
>>> result

Here is what the above code is Doing:
1. Initializing an empty dictionary.
2. Iterating over the list of dictionaries.
3. Updating the dictionary with the key-value pairs from each dictionary in the list.
4. Finally, the dictionary is printed.