MARJ
SIGN IN
VIL2checked 1d ago

Your First Real Script: Automate Something You Do by Hand

A working script that automates one real, repetitive task you actually do — run successfully on your own files
Before this

⚠️ Version note: Python's syntax here is stable, but library details and menu names in editors drift. If something doesn't match, check the "If it moved" note in the step. Last checked: 25 July 2026.

The moment code stops being an exercise and starts being useful

You learned the basics of Python (TC-04) — variables, loops, functions — probably on toy exercises that don't matter. This is where it turns real: you take one boring, repetitive thing you do by hand and make the computer do it forever, in seconds. That shift — from "learning to code" to "code doing my actual work" — is the moment programming clicks, because now it's paying you back.

The mindset to install: if you do something more than a few times, it's a candidate for a script. Renaming a hundred files. Pulling three columns out of a spreadsheet every week. Reformatting text. Sorting downloads into folders. Humans are slow and error-prone at repetitive tasks; computers are instant and perfectly consistent. This lesson walks you through building one real automation, start to finish, on a task you actually have.

What you'll have at the end

  • The shape every script shares: input → process → output
  • A real, working script that automates one of your own chores
  • The habit of spotting "I should script this"

Every script is: input → process → output

However fancy it gets, almost every useful script is three stages:

  1. Input — get the data in: read files from a folder, open a spreadsheet, take some text, fetch something.
  2. Process — do the work: loop over the items and transform each one (rename, filter, calculate, reformat).
  3. Output — put the result somewhere: write new files, save a spreadsheet, print a summary.

If you can see your chore as those three stages, you can script it. Most of the skill is breaking the task down this way (a habit straight from LN-05 — deconstruct before you build).


Members

The rest of this walkthrough is for members

Behind this: the full step-by-step, the exercise with a verifiable output, and the downloadable cheatsheet. Everything you've read above stays free, always.

$7.99/mo · 7-day free trialWeekly $2.99Yearly $59
See plansCancel in two clicks. No dark patterns.
Mark it when you've got the output in hand.

← All Technical Foundations lessons