word = 'pythonist'
#splitting word into its alphabets
newword = []
for char in word:
newword.append(char)
print newword
##########################
#creating the dict
d = {}
length = len(word)
for x in range(0,length):
d["{0}".format(x)] = newword[x]
print d
If you notice the dictionary key:value is not in the same order the letters in the string 'pythonist'. What is causing this behaviour? Im thinking, it's something to do with the way the dictionary is created because im letting the values for the dict be taken from a list I just created?