Introduction
1. Welcome
The very basics of text files
with statement and exception handling
Summary

Instruction

Hello once again! In this part of the course, we will teach you how to handle files in Python. Precisely speaking, you will learn how to open, read, and modify text files.

Text files are extremely useful to programmers. For instance, they can be used to:

  • Store the results of your application on a hard drive.
  • Exchange information between various people.
  • Load and process user input or user data.

A technical detail before we start: at any point, you can check the contents of the files mentioned in the explanation and/or exercise by clicking the 'Files' icon to the right of the Academy code editor.

Are you ready?

Exercise

Click Next exercise to continue.