promptdojo_
Checkpoint

One last thing before we move on. Same surface as a write step — but the lesson doesn't complete until this passes.

Final drill. Reuse score_image_prompt and write rank_prompts(prompts) that takes a dict of {id: prompt_string} and returns a list of (id, score) tuples sorted by score DESCENDING, ties broken by id ASCENDING (so the result is deterministic).

Five prompts run, ranging from "a girl with red hair" (zero knobs) to a full 8-knob prompt. Expected output:

P5: score=8
P4: score=7
P3: score=5
P2: score=3
P1: score=0

this step needs the editor

on desktop today; in the app (coming soon). save your spot and we'll bring you back here when you're ready.

open this same url on a laptop to keep going today.