Friday, September 11, 2015

word count using dictionary

counts = {}
for w in words:
    counts[w] = counts.get(w,0) + 1

No comments:

Post a Comment