Python Dictionary values() method

The dictionary.values() method in Python returns a view object that displays a list of all the values in the specified dictionary.

Syntax

Parameter

NA

Return

This method returns a view object. The view object contains the values of the dictionary as a list.

Example 1

Output

Example 2

Output

Pin It on Pinterest

Share This