File-IO

In the last four sessions we’ve covered most of the basic concepts of programming in Python. However, one important aspect that we have not yet touched on is how to read from and write to files on your computer using Python code. This is a crucial skill for any programmer, as it allows you to work with data stored in files.

We call the process of reading from and writing to files file input/output (file I/O). In this session, we will explore the basics of file I/O in Python, including how to open, read, write, and close files.