I just started with the Python course from codecademy. I am trying to return the dic values in the order as they are in the dictionary.
residents = {'Puffin' : 104, 'Sloth' : 105, 'Burmese Python' : 106}
res = residents.values()
count = 0
for element in res:
print res[count]
count += 1
The output I received: 105 104 106
From this I get that i do not fully understand how the for-loop or dictionary works, I was expecting to get 104 105 106 as output. Can someone explain this?