Divider tab · Programming

Programming

Code, logic, and building things step by step. Open a lesson below, then check the resources or try the quiz.

What is Code? ▶

Code is a list of exact instructions that tells a computer what to do, step by step. Computers only do exactly what they're told.

A computer is a very fast, very literal instruction-follower.

Sequencing ▶

Sequencing means putting steps in the right order so a program works, just like a recipe.

Right steps, wrong order = wrong result.

Loops ▶

A loop repeats a set of instructions instead of writing them over and over.

Loops save typing and make code easier to read.

Debugging ▶

A bug is a mistake in code. Debugging is finding and fixing that mistake.

Every programmer debugs. It's part of the job, not a failure.

Scratch: Coding with Blocks ▶

Scratch is a free programming language made by MIT where you build programs by snapping together colorful blocks instead of typing text. Each block is a puzzle piece that only fits where it's allowed to — so you can't make a typing mistake the way you can with typed code. A Scratch project has two main parts: the Stage, where the action happens, and Sprites, the characters and objects you control. You start most scripts with an event block like 'when green flag clicked,' then snap on blocks underneath to make your sprite move, talk, or react.

No typing, no typos — in Scratch, the blocks only snap together the right way.

Resources

🧩
Unplugged Sequencing CardsPut paper instruction cards in the right order
🔁
Loop-a-Doodle WorksheetDraw a repeating pattern by following a short loop
🐞
Bug Hunt PrintableSpot the mistake in 5 short instruction lists
🐱
Try Scratch OnlineBuild your own project for free at scratch.mit.edu
Take the Programming quiz