Added tag goaandcalicut-v.10112009 for changeset 49bdffe4dca5
f = open('/home/madhu/pyprogs/pytriads.py')freq = {}for line in f: words = line.split() for word in words: key = word.strip(',.!;?\'" ') value = freq.get(key, 1) freq[key] = value + 1print freq