Register - Login - Forgotten Password

Lesson 26: Reading and Writing Text Files in Python (Teach This Topic)

This guide supports teaching how Python stores and retrieves text using files. It covers persistent storage, file paths, open(), modes, reading and writing methods, newline characters, encoding, the with statement and the file object’s current position. The paper-based activities use only ordinary stationery and examples from the lesson.

Lesson 26: Reading and Writing Text Files in Python

This lesson just one in the category Teach This Topic. To access this lesson you need to have a valid learner account, ask your parent to register you now.