CBSE Class 11 Computer Science Question 32 of 88

Tuples and Dictionary — Question 12

Back to all questions
12
Question

Question 12

Which of the following functions will return key-value pairs of the dictionary?

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

items()

Reason — The items() function returns the content of dictionary as a list of tuples having key-value pairs.