1. Home
  2. Data Science
  3. Python
  4. Which method is used to update a dictionary with elements…

Added 4 May 2024

Which method is used to update a dictionary with elements from another dictionary or iterable?

  1. update() Correct answer
  2. merge()
  3. append()
  4. extend()

Correct answer

A. update()

12 views

MCQSEXAM

Explanation

The update() method updates a dictionary with elements from another dictionary or iterable.

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs