Save week08.py in your exercise folder and run python week08.py --lesson 1. The lab uses only the standard library and creates its database inside a temporary directory. It needs no credentials or network and takes seconds on a processor. The temporary directory is removed after checks, so the test is repeatable without leaving a personal-data store behind.
sqlite3.connect(path) opens a database file. A with block commits successful changes and rolls back an exception. Question marks bind values separately from command text, preventing a value from becoming part of the database command:
import sqlite3
db = sqlite3.connect(":memory:")
db.execute("CREATE TABLE memory (owner TEXT, value TEXT)")
with db:
db.execute("INSERT INTO memory VALUES (?, ?)", ("lee", "metric"))
assert db.execute("SELECT value FROM memory WHERE owner = ?", ("lee",)).fetchone()[0] == "metric"
db.close()
The one-item tuple ("lee",) needs its comma. The weekly lab uses a real temporary file rather than :memory: so it can close and reopen it. PASS means owner filtering, record operations, and restart continuity matched assertions, not that an unrestricted assistant has been evaluated.