.values()

The .values() method returns all of its values of a Python dictionary in a view object that will refect any changes to the dictionary values. It takes no arguments.

Syntax

dictionary.values()

Codebyte Example

The following example creates a dictionary, then prints all the values:

Code
Output
Loading...

Contributors

Interested in helping build Docs? Read the Contribution Guide or share your thoughts in this feedback form.

Learn Python on Codecademy