Question · Python course · Module 2: Data Structures

Iterating Over a Dictionary

What does dict.items() return?

Answer options

  • Only keys
  • Only values
  • (key, value) pairs
  • The number of elements
Show the answer

Correct answer:

  • (key, value) pairs