Lesson 1: Sequence a Space Rescue
A sequence is a set of instructions that a computer follows in order, one at a time. In this mission you will build a real program by putting four code blocks in the right order to rescue a stranded astronaut.
Astronaut Zoe is stranded on a tiny moon! The rescue only works when the rocket follows the steps in the right order.
How to complete your mission
-
1
Read the mission
Astronaut Zoe needs a rescue rocket. A computer can fly it, but only if your program tells it every step in the right order.
-
2
Look at the code blocks
Each block in the Block Bank is one instruction. Read all four before you start. Ask yourself: what must happen first?
-
3
Drag blocks into the program
Drag each block into a numbered slot in My Program. On a tablet, you can also tap a block to send it to the next empty slot. Tap a placed block to send it back.
-
4
Press Run Program
The computer will follow your steps one at a time, exactly as you wrote them. If the order is right, watch the rocket launch!
-
5
Debug like a coder
Wrong order? That's a bug, and every coder gets them. The computer will tell you which step looks wrong. Drag the blocks around and run it again.
Drag the code blocks into your program.
These instructions are mixed up. Put them in the order that saves Zoe.
Drag all 4 blocks into the slots.
- Drop step 1 here
- Drop step 2 here
- Drop step 3 here
- Drop step 4 here
// Your program will appear here.
// Drag blocks, then press Run Program.
Next Lesson
Talk about it
-
?
Why must the oxygen tank come first?
What would happen to Zoe if the rocket launched before anyone packed the oxygen?
-
?
Where do you follow sequences in real life?
Think about getting ready for school or making a sandwich. What breaks if you swap two steps?