Python Programming - Dictionaries - Discussion

Discussion Forum : Dictionaries - General Questions (Q.No. 25)
25.
What is the purpose of the dictionary.update(another_dict) method?
Merges the two dictionaries, updating values for common keys.
Adds a new key-value pair to the dictionary.
Removes a key-value pair from the dictionary.
Creates a new dictionary by combining keys and values.
Answer: Option
Explanation:
The update() method merges two dictionaries, updating values for common keys.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.