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

sorted(d, key=d.get, reverse=True)

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