promptdojo_

files without fear — open(), pathlib, and the receipt for your data — step 6 of 8

This script logs two events to the same file. AI used "w" for both writes, so the second open wipes the first line. Fix the mode on line 5 so both lines end up in the file. The output should be:

started
done
The break is on line 5 — but read the whole snippet first.

full-screen editor opens — close anytime to keep reading.