Taken task based approach for Session 3, day 1.
Removed introduction to dictionaries slide and accommodated the same
content while solving the problem.
import keywordf = open('/path/to/file')freq = {}for line in f: words = line.split() for word in words: key = word.strip(',.!;?()[]: ') if keyword.iskeyword(key): value = freq[key] freq[key] = value + 1print freq