SyntaxFix
Write A Post
Hire A Developer
Questions
The dict type is an unordered mapping, so there is no such thing as a "first" element.
dict
What you want is probably collections.OrderedDict.
collections.OrderedDict