human
Sort a Python dictionary by value
assistant
Here is some code to sort dictionary `dict1` by value in ascending order

sorted(dict1, key=dict1.get)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.