Reworked on Session 3 day 1 slides.
Changed problem statement. Solved the problem. Included pie charts.
import keywordf = open('amicable.py')freq = {}for line in f: words = line.split() for word in words: key = word.strip(',.!;?()[]: ') if keyword.iskeyword(key): if key in freq: freq[key] += 1 else: freq[key] = 1print freq