promptdojo_

Write a small script that:

  1. Writes the string "line one\nline two\n" to /tmp/notes.txt using a with block in write mode.
  2. Reads the file back with another with block and prints its contents stripped of trailing whitespace.

Expected output:

line one
line two

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.