Name

.iteritems()

Examples

element_names = {'H': 'hydrogen', 'He': 'helium', 'Li': 'lithium'}

# Iterate over each item of the dictionary:
for k, val in element_names.iteritems():
	print("The name of element " + k + " is " + val)

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