Skip to content

Instantly share code, notes, and snippets.

@fatosmorina
Created January 9, 2022 08:34
Show Gist options
  • Save fatosmorina/d374067e92fae38f077f7011aec1e5fa to your computer and use it in GitHub Desktop.
Save fatosmorina/d374067e92fae38f077f7011aec1e5fa to your computer and use it in GitHub Desktop.
def merge_dictionaries(first_dictionary, second_dictionary):
temporary_dictionary = first_dictionary.copy() # copy the first dictionary
temporary_dictionary.update(second_dictionary) # keep only values from the second dictionary
return temporary_dictionary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment