Back
📋Sequences & Steps

Ordering instructions correctly

📋

Sequences & Step-by-Step Instructions

Key Points

  • A SEQUENCE is a set of steps performed in a specific order to complete a task
  • Computers follow instructions EXACTLY in order — a wrong step or wrong order causes an error!
  • Every day you follow sequences: wake up → brush teeth → get dressed → eat breakfast
  • The order of steps matters: you must put socks on BEFORE shoes (not after!)

📘 Examples

Put in order to make a PB&J: A) Eat, B) Get bread, C) Add peanut butter, D) Close sandwich

B → C → D → A! Get bread, spread peanut butter, close sandwich, then eat! Order matters!

A robot must go right 3 steps then up 2 steps. How many total steps?

5 steps! Right, Right, Right, Up, Up. Robots need exact, ordered instructions!

Why would a robot fail if Step 2 and Step 3 are swapped?

Because computers follow instructions EXACTLY! Wrong order = wrong result. A programmer must be very careful!

🌟 Fun Fact!

Ada Lovelace (1815–1852) wrote the world's first computer program — 100 years before modern computers existed! She was a mathematician who worked with Charles Babbage's 'Analytical Engine'. 💻

A sequence is a set of steps in a specific order. It is the first idea in programming, because a computer does exactly what it is told in exactly the order it is told.

The lesson children take from it is that order matters and that instructions must be precise. Putting on socks after shoes is a sequencing error, and it is the same class of mistake as a bug in code.

Ideas to build

  • That steps happen in order, and changing the order changes the result.
  • That instructions must be complete, because computers do not infer the missing parts.
  • That a big task can be broken into a sequence of smaller steps.
  • That testing a sequence reveals steps you forgot.

Things to do at home

  • Have the child give you precise instructions to make a sandwich, and follow them exactly and literally.
  • Write the steps of a morning routine and then deliberately shuffle them to see what breaks.
  • Give directions to a room in the house using only step, turn left, turn right.
  • Break a task like tidying a room into a numbered list before starting it.

Frequently asked questions

What is a sequence in coding?
A set of instructions carried out in a specific order. It is the most basic programming concept, since a computer executes steps exactly as given, one after another.
Why is the sandwich activity useful?
Because following instructions literally exposes every assumption the child made. It demonstrates precisely why computers need complete, unambiguous instructions, and children find it very funny.
Do children need a computer to learn sequencing?
No. Unplugged activities using everyday routines teach sequencing effectively, and many schools deliberately start without screens.