PythonDictionaryvalues
keys

valuesDictionary

items

Returns a view of all values in the dictionary.

Syntax

dict.values()

Example

Enter values below to update the example in real time.

person
print
list
person = {"name": "Alice", "age": 30}
print(list(person.values()))  # ['Alice', 30]