Created
August 19, 2016 17:49
-
-
Save rbrooks/df28a497ba99954175c93dbd1486fc5f to your computer and use it in GitHub Desktop.
Merge Dictionaries
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def merge_dicts(x, y): | |
z = x.copy() | |
z.update(y) | |
return z |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment