I've found some similar questions but none has solved my problem. Follow this example:
d={'a': 6, 'b': 3, 'c': 8, 'd': 1}
Now I wanna print the key that has the greatest number (in this case 'c') and the smallest too (in this case 'd'). Realize that what I wanna print is the key, not its value.