It's hard to imagine writing a program that doesn't use files in some way. Whether you're reading configurations, parsing logs, analyzing text, decoding JSON, or writing reports, you're working with files.
Python makes it easy to work with files and directories. Indeed, that's one of the reasons why Python is commonly used as a replacement for bash shell scripting — because of the ease with which you can work with, and navigate through, directories and files.
In this 5-hour video course, I walk you through the different ways in which you can work with files — from the simplest techniques to the most advanced and modern ones. We discuss a variety of issues you might encounter, including binary (byte) files, context managers, and Unicode characters. I introduce several common file formats, such as CSV and JSON, with which you'll want to work. And a section at the end of the course walks you through "pathlib," Python's object-oriented interface to the filesystem.
As with all of my courses, I've included a large number of exercises that you can use to practice the ideas that I teach. And the Jupyter notebooks that I use when teaching the course are all available for you to download, experiment with, and use.
If you plan to use Python to read from or write to files, then this course will teach you what you need to get going.