Mega Code Archive

 
Categories / Python Tutorial / Dictionary
 

The values method returns a list of the values in the dictionary

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