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'
sness at 2/10/2013 04:26:00 pm
‹
›
Home
View web version
Powered by Blogger.