.values()

Published May 23, 2022Updated Oct 13, 2023
Contribute to Docs

The .values() method returns all of its values of a Python dictionary in a view object that will reflect 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:

us
Visit us
code
Hide code
Code
Output
Hide output
Hide output
Loading...

All contributors

Looking to contribute?

Learn Python on Codecademy