files and i/o — moving data in and out4 / 9
open() — and the with-block ai keeps forgetting
Read the editor. We write three items to a file, read all the lines into a list, then print the count and the first item (stripped). What does it print? (Two lines, in order.)
⌘↵ runs the editor.
Booting Python…
Output
[promptdojo:~]$ _