How to make quick directory lists in python. All of these will use listdir in the os module. so we need to import it first Now we want to list all the files in a directory called my_folder. But the trick is that we only want the text files. Another thing we can do is […]
This script will read all the text files in a directory and output a list of all the words and how many times they apear.