Core: learn it Step 7 of 16 on the Python Developer roadmap
Files and errors
Programs need to keep data between runs and cope when something goes wrong. Reading and writing files lets your work survive after the program closes. Handling exceptions lets it fail politely instead of crashing with a wall of red text.