Which method in a dictionary object gives you a list of the values in the dictionary?
Answers
Answered by
1
The method in a dictionary object that gives us a list of the values in the dictionary is values().
- A dictionary is a collection of values with keys assigned to them.
- The list containing all the values of the dictionary can be obtained by calling the function values().
- For example, the values of dictionary d can be obtained by using the command d.values().
Similar questions