'finding keys based on their values in python

I want to find greatest value in my result yet they are ones so I have to make another dict.

result = {82:3, 35:2, 16:1, 94:3, 15:1}
max_result = dict()
greatest = max(result.values())
for max in result.values():
    if max == greatest:
        key = result[max]
        max_result[key] = max
    print(max_result)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source