Informatics Practices

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()

Python Dictionaries

1 Like

Answer

items()

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

Answered By

1 Like


Related Questions