What approach should I use to return all dict keys that have the maximum value.
The code below outputs 1, but I would like for it to return 1, 2.
import operator
d1 = dict()
d1[0] = 1
d1[1] = 2
d1[2] = 2
maxValue = max(d1.iteritems(), key=operator.itemgetter(1))[0]