Can you modify the value in a dictionary?
Answers
Answered by
1
Answer:
The update() method updates the dictionary with the elements from the another dictionary object or from an iterable of key/value pairs. update() method adds element(s) to the dictionary if the key is not in the dictionary. If the key is in the dictionary, it updates the key with the new value.
Explanation:
The update() method updates the dictionary with the elements from the another dictionary object or from an iterable of key/value pairs. update() method adds element(s) to the dictionary if the key is not in the dictionary. If the key is in the dictionary, it updates the key with the new value.
Similar questions
Accountancy,
2 months ago
Math,
2 months ago
World Languages,
6 months ago
History,
10 months ago
English,
10 months ago