This program must be run with Python 3.6 or later.
What I would do in order to run it in production:
- I would make it an executable and add an argument parser to let the user select input and output files from the command line. Giving the program a more sensible name, it would perhaps look like
$ word_counter -i data.txt -o result.txt