SyntaxFix
Write A Post
Hire A Developer
Questions
Yes, what you observed is indeed a guaranteed property -- keys(), values() and items() return lists in congruent order if the dict is not altered. iterkeys() &c also iterate in the same order as the corresponding lists.
keys()
values()
items()
iterkeys()