During a tutorial python session with my colleagues I was presented with a basic question
>>> d = {'apple':2,'banana':5, 'coke': 6} >>> print d.keys() ['coke', 'apple', 'banana'] Question is why does it not return ['apple','banana','coke'] Similarly: >>> d = {'a':2,'b':4,'c':5,'d':4,'e':3} >>> print d.keys() ['a', 'c', 'b', 'e', 'd'] why not ['a', 'b', 'c', 'd', 'e'] I have no clues. Any inputs?? anand _______________________________________________ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers