Create an algorithm in Python to merge multiple dictionaries
d1 = {'a': 1, 'b': 2}
d2 = {'c': 3, 'd': 4}
def merge_dicts(dicts):
    results = {}
    for d in dicts:
        results.update(d)
    return results