If d is a dictionary, the method d.______() will return a list of all the values in the dictionary.
- extract_values
- get_values
- list_values
- values
The values() method in Python returns a view object that displays a list of all the values in the dictionary. You can convert this view to a list if needed.
Loading...
Related Quiz
- In Python, a ____ is a file containing Python definitions and statements intended for use in other Python programs.
- How would you run a Python script from the command line and pass arguments to it?
- Which of the following sorting algorithms is most efficient for small-sized data sets?
- Which Python keyword is used to start an if statement?
- What is the result of the expression type((1,))?