Everyday Automation

The reason to learn: wrap repeated work into functions and loops, then take a real task you do by hand — a tally, a glossary, a find-and-replace — and let a notebook do it in a second.

Here is where the effort pays back. You already know how to run cells and you have met the shapes your material takes; this block turns that into leverage. The trick behind all automation is small: give a piece of work a name so you can reuse it, tell the notebook to do it for every item instead of one, and let it choose which items qualify. Three moves — a function, a loop, an if — and suddenly a task that took an evening takes a second.

The block ends where the whole discipline has been pointing: you take real paper tasks — tally the words in a text, build a vocabulary table, run a find-and-replace across many lines — and watch a notebook do each one. The final step is yours alone: pick a task from your own working week and automate it. That moment, not any syntax, is what this block is for.

Call functionsuse ready-made toolsWrite your ownname work to reuse itLoop and chooseevery item, or someYour own taskthe graded payoff
From borrowing tools to automating a task from your own week.