The values method returns a list of the values in the dictionary : Values « Dictionary « Python Tutorial






d = {} 
d[1] = 1 
d[2] = 2 
d[3] = 3 
d[4] = 1 
print d.values()








8.26.Values
8.26.1.The values method returns a list of the values in the dictionary