String methods
String methods slice, strip, split, join and search text. Most real data arrives messy, and cleaning it is a genuine everyday programming job.
Close the program and the data vanishes — unless you wrote it down.
Files give programs a memory that outlives a single run. Alongside file handling, students sharpen string methods for cleaning and searching text, so saved records are actually usable later.
Persistence is the difference between a toy and a tool. A journal that forgets everything on exit is not a journal.
Three core ideas, each taught with worked examples and then practised until it feels obvious.
String methods slice, strip, split, join and search text. Most real data arrives messy, and cleaning it is a genuine everyday programming job.
Reading and writing text means opening a file, doing the work and closing it properly — which is why the with statement exists and why professionals always use it.
Simple records mean choosing a consistent line format, such as date | mood | note, so the program can read back exactly what it wrote.
Opening a file in "w" mode erases everything already in it, instantly and without asking. "a" for append is the safer choice — and a lesson usually learned once.
“Saving happens automatically.” Data sits in memory until it is written and the file is closed. Crash before that and it is simply gone.
Sessions 41–48 of the 72-session year, at two one-hour sessions per week.
Where this module fits, what you will build, and a hands-on starter that gets everyone curious about string methods.
Guided teaching on string methods, worked through together with the teacher.
Independent practice, small challenges and one deliberate mistake to diagnose.
Guided teaching on reading and writing text, building directly on the previous two sessions.
Applied tasks that combine string methods and reading and writing text in one piece of work.
Simple records introduced and practised, completing the toolkit needed for the project.
Guided build session for the module project: Digital journal.
Finish, test against the checklist, present the work and explain the decisions behind it.
Every module ends with something the student built themselves and can demonstrate. This is the piece that goes into their portfolio and gets explained out loud at the end of session 48.
Build a journal that appends a dated entry each time you run it, then add a search that prints every entry containing a chosen word.
Students finishing Module 6 can:
The vocabulary introduced here, in plain language:
6 quick questions drawn from this module — vocabulary, the project you build, and a myth-or-fact round. Every wrong answer explains itself, so a mistake still teaches you something.
Tell us your child’s class and what they enjoy. We will suggest the closest program fit—no pressure and no upfront payment.