Python Programming - Dictionaries - Discussion

Discussion Forum : Dictionaries - General Questions (Q.No. 6)
6.
How do you merge two dictionaries?
dict.merge(another_dict)
dict.join(another_dict)
dict + another_dict
dict.update(another_dict)
Answer: Option
Explanation:
The update() method is used to merge two dictionaries in Python.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.