Name

.values()

Examples

element_names = {'H': 'hydrogen', 'He': 'helium', 'Li': 'lithium'}
element_values = element_names.values()
print(element_values) # Prints ['lithium', 'hydrogen', 'helium']

# Check to see if a given value is in the dictionary
if 'hydrogen' in element_names.values():
	print("found hydrogen!")

Description
Syntax
	dict.values()
Parameters
dict
Related Dictionary
.keys()
Updated on Wed Jan 18 17:32:21 2017.
Creative Commons License