Sequences: Putting Steps in Order
An early-years coding lesson on sequences: learn how computers do steps in order, why the order matters, and practice with simple examples and a mini quiz.
Key takeaways
- A sequence is steps done in order, one after another
- The computer follows the steps from top to bottom
- Wrong order can give the wrong result
What is a sequence?
A sequence is steps done in order, one after another.
First you do step 1. Then step 2. Then step 3. The order never jumps around.
Computers love sequences. They do each step from top to bottom.
Steps go one at a time
Look at these steps to make a drink:
- Get a cup.
- Pour in the juice.
- Take a sip!
The computer would do step 1, then step 2, then step 3. One at a time, in order.
It never does step 3 before step 1. That would be silly!
Order really matters
Let's try getting dressed:
- Put on socks.
- Put on shoes.
Now flip them around. Put on shoes first, then try to put on socks. Can you? No! The shoes are in the way!
This is why the order of a sequence is so important.
Sequences in code
When you write code, you make a sequence of steps. The computer follows them in order, just like a recipe.
You can see this idea in What Is an Algorithm? and try real steps in Getting Started with Scratch.
Try it yourself
Think of the steps to wash your hands:
- 💧 Turn on the water
- 🧼 Add soap
- 👏 Rub your hands
- 🚿 Rinse them clean
Now mix them up. Can you rinse before the water is on? No way! A good sequence keeps the steps in the right order.
Quick quiz
Test yourself and earn XP
What is a sequence?
A sequence is a set of steps done one after another, in order.
Which way does a computer read the steps?
A computer does steps from top to bottom, one at a time.
To put on socks and shoes, what comes first?
Socks go on first, then shoes. Order matters in a sequence!
FAQ
They are very close! A sequence means doing steps in order. An algorithm is the whole plan of steps to finish a job. Most algorithms are made of sequences.
Keep exploring
More in Coding