11

Lesson 11 of 20 · Step-by-Step

Step-by-Step — Part 19

Follow 2–3 steps in order to complete a task. This is part 19 of 20.

What you'll learn

You will learn that a program is a list of commands that run in order, and the order matters.

Steps

  1. 1A program is a list of commands. Read the code — it has 4 commands that would execute in order: Move, Turn, Move, Stop.
  2. 2Each print() is one command. The computer follows them top to bottom, like following a recipe step by step.
  3. 3If we swapped Command 2 and Command 3, the robot would Move first, then Move again, then Turn — a completely different path!
  4. 4Programs are just step-by-step instructions. You already give step-by-step instructions every day — like giving directions to a friend!

Key Terms

Command
An instruction you give to the computer (e.g. print something).
Program
A list of commands the computer runs one after another.
Step
One part of a program. Steps run in order from top to bottom.
Python 3
Output
Loading Python... This may take a few seconds.

Your code runs only in your browser. No code is sent to any server. Stay safe and have fun learning!

🖨️

Checkout complete lesson on Step-by-Step for Kindergarten

Get the full Step-by-Step track as a printable PDF — all lessons, worksheets, and answer keys.

View in Shop

Your Cart (0)

Your cart is empty

Browse our shop to find activities your kids will love