def plurality(objs):
 c = Counter(objs)
 if (not c):
  raise ValueError(u'sequence must be non-empty')
 return c.most_common(1)[0]

def plurality ( objs ) : c = Counter ( objs ) if ( not c ) : raise ValueError ( u'sequence must be non-empty' ) return c . most_common ( 1 ) [ 0 ]
given a sequence of comparable objects .