What is usage of update method in Python dictionary?
Answers
Answered by
1
Answer:
Explanation:
Python Dictionary update() The update() method updates the dictionary with the elements from the another dictionary object or from an iterable of key/value pairs. The update() method adds element(s) to the dictionary if the key is not in the dictionary.
Similar questions
Chemistry,
6 months ago
Math,
6 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
Science,
1 year ago
Biology,
1 year ago