How would I find how many times each string appears in my list?
Say I have the word:
\"General Store\"
that is in my list like 20 t
I like one-line solutions to problems like this:
def tally_votes(l): return map(lambda x: (x, len(filter(lambda y: y==x, l))), set(l))