The issue in the link has been closed but there was no real answer to it. I'd like to know why the key 'c' is read out before 'b'. I realize there is neither a index order nor an alphabetical order. How ever, if you run the program several times, you can see there is an order, since 'c' comes always after 'a' and before 'b'.


Dictionaries don't have an explicit order. You will loop over and print the dict's values. But Python will print it as conveniently as it feels. :slight_smile:


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.