DPython for KidsModule 1 · Lesson 1.1
LESSON 1.1 · 25 MINUTES

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?

SAFE PYTHON RUNNER

Try the challenge

No files · no network · safe lesson commands only

Write a library checkout checklist. Print exactly two lines: “Step 1: Find the book” then “Step 2: Scan the book”. The order matters.

Target output
Step 1: Find the book
Step 2: Scan the book
Match 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.

Output
Your output will appear here.
DEBUG DETECTIVE

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.

QUICK CHECK

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?

Stretch practice · self check

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.