human
How do I compare values in a dictionary?
assistant
Here is some code to get the maximum of 'salary' and 'bonus' values in a dictionary

print(max(d, key=lambda x: (d[x]['salary'], d[x]['bonus'])))

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