sness
blog of sness
Sunday, February 10, 2013
python - Getting key with maximum value in dictionary? - Stack Overflow
python - Getting key with maximum value in dictionary? - Stack Overflow
: "stats = {'a':1000, 'b':3000, 'c': 100}
max(stats.iteritems(), key=operator.itemgetter(1))[0]"
'via Blog this'
Newer Post
Older Post
Home