I'm a newbie to Python.
Here I have defined a dictionary:
dic = {"hello":"is_done", "bye":'is_gone', "things":'thinking'};
And then I have looped through it for it to return the data as expected:
for item in dic :
print("this is an item from our dictionary: "+dic[item]);
Here is the output:
this is an item from our dictionary: is_gone
this is an item from our dictionary: thinking
this is an item from our dictionary: is_done
Why is the order of iteration for producing output different from the order in which the key:value
pairs were initialized in the dictionary object?