Reworked on Session 3 day 1 slides.
Changed problem statement. Solved the problem. Included pie charts.
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