Wednesday, April 06, 2011

max





index of maximum element in a list in python

a = max(izip(n.values(), count()))[1]