/10MostFrequentWords

most frequent words

Primary LanguagePython

Program that reads in a text file and prints out the 10 most frequent words from that file together with their counts.

A word is defined as a space-separated token.

If several words have the same frequency, they are considered to occupy a single “slot” from 1 to 10; and the program print them all out.

The program take as input argument a file, and print to STDOUT the list of words and their counts.