values() returns a list of the dictionary's valuesitems() returns a list of (key, value) tuple pairs. dict1 = {'A':'1', 'B':'2' }print dict1.keys()print dict1.values()print dict1.items()for eachKey in dict1.keys(): print 'dict1 key', eachKey, 'has value', dict1[eachKey]
Name (required)
email (will not be published) (required)
Website