WEEK 2 · THURSDAY
Week 2 · Day 4 — File I/O and Error Handling
2.3 hours·12 sections
Section 1 of 120/12 done
Week 2 · Day 4 — File I/O and Error Handling
"Data that doesn't survive between sessions isn't data — it's a conversation you forgot to write down."
Recap of Days 1-3
- Day 1: Variables, math, input/output, f-strings
- Day 2: Lists, for loops, while loops
- Day 3: Functions, dictionaries, nested data structures
Today's concepts make your programs real. Right now everything disappears when you close the program. After today, you can save game logs, load them next session, and handle the inevitable crashes and bad inputs gracefully.