Python Foundations · Objects & reliability
Files, CSV & pathlib
Read and write files safely with `with`, parse CSVs into dicts, and handle paths with pathlib so your scripts work on any machine.
Step 1 of 7 · Overview25 min read ·
Key idea
Prereqs: Conditionals & loops, Errors & testing. Next: Classes & objects. Mirrors CS50P week 6 (File I/O).Next: 1. Opening a file the right way