Computer Science, asked by anirbannayek676, 6 months ago

Can you modify the value in a dictionary?​

Answers

Answered by uditbangar
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