Ten small Python tasks, each failing on the fixture and passing with a reference solution, including workflow expectations for a small change, a bugfix, and a delegable change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4 lines
186 B
Python
4 lines
186 B
Python
def find_user(conn, name):
|
|
"""Return (id, name) for the user with the given name, or None."""
|
|
return conn.execute(f"SELECT id, name FROM users WHERE name = '{name}'").fetchone()
|