KnowledgeBoat Logo
|

Computer Science

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

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

Python Dictionaries

2 Likes

Answer

items()

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

Answered By

3 Likes


Related Questions