The program asks user for the path to a text file on input and prints 10 most frequent words in the file.
$ python lang_frequence.py # maybe you should use python3 instead of python due to your system dependencies
Input the path and (or) filename of a text file: poe_dream.txt
10 most frequent words in the file 'poe_dream.txt'
a 12
dream 7
the 6
i 6
in 5
or 4
within 4
that 3
not 3
is 3
The code is written for educational purposes. Training course for web-developers - DEVMAN.org