Chapter 9: Problem 12
What does the keys method return?
Short Answer
Expert verified
Answer: The "keys()" method in Python is used with dictionaries to get a collection of all the keys present in the dictionary. To use it, simply call this method on the dictionary, like "dictionary.keys()". The result will be a list-like collection of all the keys, which can be converted into a list using the list() function.