Project 4: a to-do list that remembers
An app is only really useful if it keeps its data when you close it. Here, the task list is saved to a JSON file on every change and read back at startup. That's the principle of persistence, which you'll meet again later with a database.
Clean structure: the constructor loads the file if it exists (otherwise an empty list), a save() method centralises writing, and each action (add, complete) calls save(). To check it all works, create a second object on the same file: just like restarting the app.
import json
from pathlib import Path
import tempfile
path = Path(tempfile.mkdtemp()) / "todo.json"
path.write_text(json.dumps([{"title": "Learn Python", "done": False}]))
tasks = json.loads(path.read_text())
print(tasks)