What does the dict.keys() method do?

28. What does the dict.keys() 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: A) It returns all the keys of the dictionary as a tuple

Explanation:

The dict.keys() returns all keys of the dictionary as a tuple.

Comments and Discussions!

Load comments ↻






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