-
-
Save fatosmorina/d374067e92fae38f077f7011aec1e5fa to your computer and use it in GitHub Desktop.
This file contains 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_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