Write the function merge_dicts(L) that takes in a list of dictionaries and non-destructively merges them. For example
Fantastic news! We've Found the answer you've been seeking!
Question:
Write the function merge_dicts(L) that takes in a list of dictionaries and non-destructively merges them.
For example if L = [{"a": 1, "b": 2, "c": 3}, {"a": 4, "b": 2, "c": 3}], then merge_dicts(L) should return {"a": {1, 4}, "b": 2, "c": 3}
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date: