SyntaxFix
Write A Post
Hire A Developer
Questions
I had the same problem you had. I used a for loop with the sorted function passing in the dictionary like so:
for item in sorted(mydict): print(item)