- VC Healy
- Sep 29, 2020
- 1 min read
A counter that counted the instances of a word in a list was written in python/
This progressed this to reading the contents of a text file, getting the ten most common words from the file as thee result. The text in the file just random content and I thought this to sensible.
The next step reading from a set of files, giving the top ten most common words from each file.
Three imports were required re.findall, os.system and collections.Counter.Not for speed of code but for knowing exactly what is being used, is why I only import the methods on a module. Only in small code of course.
