If I make two dictionaries with the same keys, it seems like they return values in the same order, even though dictionaries aren't ordered. For instance, if I do this:
dict1 = {"a":1, "b":2, "c":3, "d":4}
dict2 = {"a":10, "b":20, "c":30, "d":40}
zip(dict1.values(), dict2.values())
It gives the "desired" output:
[(1, 10), (3, 30), (2, 20), (4, 40)]
Why does this happen? Can I always count on two dictionaries with the same keys having their values ordered in the same way?