Your question does not make sense in a strict sense — a dictionary is a mapping from a set of keys to a set of values. As such, they don't have an order since sets don't have order. The order you see when you print a dictionary is "random" and not to be trusted. You can see the randomness in action when you use the -R flag with a modern Python: