Code Order

Files

Saving text to a file and getting it back: opening with `with`, the modes for reading, writing and appending, `write`, `read`, `readlines`, looping over the lines of a file, cleaning each line, counting and totalling, and copying one file into another.

Tap a piece to move it, or drag the ⠿handle. Some pieces don't belong.

0 of 10 solved

1. Open for writing

Easyone line

Rebuild the line that opens the file "notes.txt" for writing and calls it `f`.

Your program

0 of 8 slots filled

    Tap or drag pieces here, in the order they should run.

    Pieces

    Some of these belong in no program