Skip to content

Instantly share code, notes, and snippets.

@JayH5
Last active April 4, 2018 12:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JayH5/95942d3614497fb2abb307046c4a6320 to your computer and use it in GitHub Desktop.
Save JayH5/95942d3614497fb2abb307046c4a6320 to your computer and use it in GitHub Desktop.
Python example: Dictionary merging
def merge_dicts(dict1, dict2):
merged_dict = dict1.copy()
merged_dict.update(dict2)
return merged_dict
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment