# Lesson 7: Reading and writing files We look at reading and writing files the way working developers use it, with examples you can change and run right away. Full lesson: [https://glibcode.net/courses/python-basics/lessons/7](https://glibcode.net/courses/python-basics/lessons/7) ## Files - `files.py`: writing a file, reading it back line by line ## Run it ```sh python3 files.py ``` ## Exercises See [exercises.md](exercises.md). Ask in the forum once you've tried.