What Is Coding?
A computer is fast, but it needs exact instructions—like a robot following a recipe.
Discover
- An algorithm is an ordered set of steps.
- Code turns those steps into instructions a computer can follow.
- Small spelling and order changes can change the result.
Try, explain and change
Try: Write a library checkout checklist. Print exactly two lines: “Step 1: Find the book” then “Step 2: Scan the book”. The order matters.
Change: Try reversing the lines. Which action now happens before finding the book?
Try the challenge
Write a library checkout checklist. Print exactly two lines: “Step 1: Find the book” then “Step 2: Scan the book”. The order matters.
Step 1: Find the book Step 2: Scan the bookMatch the lines and order. Your code must use the lesson concept.
The runner supports this pathway’s controlled Python concepts while blocking packages, files, networks and system commands.
Your output will appear here.
Find the bug
print("Step 1: Pack my bag"
print("Step 2: Leave home")Show debugging clue
The first print instruction is missing its closing parenthesis.
What is an algorithm?
A computer game
Not this time. Review Discover and try again.
An ordered set of steps
Correct — well reasoned.
A Python error
Not this time. Review Discover and try again.
Create and reflect
Create: Write a three-step algorithm for a task you know well.
Reflect: Why must instructions be in the correct order?
For extra practice, add Step 3: Put the book in your bag. Explain why scanning must come before packing.
Edit and run your code again to explore this variation. It does not change lesson completion.