promptdojo_
Checkpoint

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

Last drill. Write a function merge_logs(folder) that:

  1. Globs for all *.log files in folder (sorted by name).
  2. Reads each file's text.
  3. Returns a single string with the contents of all logs joined, each separated by a single newline. Trailing newlines are fine.

The starter creates three log files. Calling the function should print exactly:

--a--
--b--
--c--

(Each file's content is --<letter>--\n. Concatenated they form three lines.)

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.