2026-spring python-basics/lessons/07-reading-and-writing-files

README.md

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 straight away.

Full lesson: https://glibcode.net/courses/python-basics/lessons/7

Files

  • files.py: writing a file, reading it back line by line

Run it

python3 files.py

Exercises

See exercises.md. Ask in the forum once you've tried.