What does the dict.items() method do?

25. What does the dict.items() method do?

  1. It returns all the keys of the dictionary as a tuple
  2. It returns all the keys and pairs of the dictionary as a tuple
  3. It returns all the pairs of the dictionary as a tuple

Answer: B) It returns all the keys and pairs of the dictionary as a tuple

Explanation:

The dict.items() returns all the keys and pairs of the dictionary as tuple.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.