CBSE Class 11 Informatics Practices Question 26 of 66

Dictionary — Question 9

Back to all questions
9
Question

Question 9

Which of the following functions will return key-value pairs of the dictionary in the form of list of tuples?

  1. key()
  2. values()
  3. items()
  4. get()
Answer

items()

Reason — The items() function will return key-value pairs of the dictionary in the form of list of tuples.