SyntaxFix
Write A Post
Hire A Developer
Questions
Another short oneliner:
mydict = {'c': 1, 'b': 2, 'a': 3} print(*sorted(mydict.items()), sep='\n')