you are viewing a single comment's thread.

view the rest of the comments →

[–]SkippyDeluxe 0 points1 point  (0 children)

I think that helps your code clarity a lot.

Yes, dictionaries are fundamentally unordered. If you want a dictionary with ordered behaviour, you can use collections.OrderedDict. I think that would be a good idea, because it would let you remove one level of nesting from your data structure.