So I have a dictionary in python in which I have a number for the key with a value attatched to it.
myDictionary = {"0" :0, "1":0, "2":0, "3":0, "4":0, "5":0, "6":12, "7":0,"8":0,"9":0,"10":0,"11":0, "12":0,"13":12}
I run a doctest that says:
>>> myDictionary = {"0" :0, "1":0, "2":0, "3":0, "4":0, "5":0, "6":12, "7":0,"8":0,"9":0,"10":0,"11":0, "12":0,"13":12}
>>> new_Val = 0
>>> method0 = WordClass (new_Val, myDictionary)
True
I was doing some debugging ad printed out my dictionary to make sure I was going through the right values in the dictionary. When I printed it out, it looked like this:
{'11': 4, '10': 4, '13': 0, '12': 4, '1': 4, '0': 4, '3': 4, '2': 4, '5': 4, '4': 4, '7': 4, '6': 0, '9': 4, '8': 4}
They are all out of order. Does python do that by default when storing memory or something? If so, is there some documentation somewhere that I can look at?
Thank you