Lesson 2: Sequences
A sequence is doing things in a specific order. In coding — and in life — the order of steps matters! Making a sandwich, getting dressed, even brushing your teeth — these are all sequences.
Key Concepts
Order Matters!
If you put on your shoes BEFORE your socks, that's a problem! In coding, getting the sequence wrong means the program doesn't work right. Each step has to be in the correct order.
Step by Step
Computers follow instructions one at a time, from top to bottom. The first instruction runs first, then the second, and so on. There are no shortcuts!
Debugging
When a program doesn't work, we look for mistakes called bugs. Fixing bugs is called debugging. Even professional programmers debug their code every day!
🆕 Activity: Sequence Puzzle
The character needs to reach the star! Arrange the steps in the correct order by clicking them in sequence. Can you find the right path?
✅ Check Your Understanding
1. What is a sequence in coding?
2. What is a bug in programming?
3. If you put on shoes before socks, what went wrong?