I am following instructions for a class homework assignment and I am supposed to look up the top 200 most frequently used words in a text file.
Here\'s the last par
Looks like you are using Python 3. In Python 3 dict.keys() returns an iterable but not indexable object. The most simple (but not so efficient) solution would be:
dict.keys()
vocab = list(fdist1.keys())