Created
August 19, 2016 17:49
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