Check out my website:
www.dcodetech.com
This video shows you how to read from and write to text files with python. I also show you how to use a context manager to take of closing the resources automatically. I finish up by showing a quick example of how text files can be used to store data for a simple game or other application in python.
I use python 3.7 in this series