The subject of our madness today is syntax sugar and Python dictionaries. Specifically, the operation of combining multiple dictionaries into one. We ask the following question as motivation:
Does there exist a function in Python that merges two or more dictionaries into a single, new dictionary?
There exist plenty of ways to merge dictionaries in Python, but are any of them functions with signatures like this?
Why do I care about this?
Here’s the way it usually goes.