When i declare a list 1,2,3,4 and i do something with it , even just print i get back the same sequence 1,2,3,4.
But when i do anything with dictionaries , they alw
If you want to see the entries in order. something like:
test2 = {"c":3,"a":1,"b":2,"d":4} ks = test2.keys() ks.sort() for key in ks: print key + ':' + str(test2[key])
(cut,paste, season to taste)