Thinking in Code
Math · Foundational · Lesson 1 of 9

Step by Step

Programs are exact instructions

An interactive lesson with 8 steps, about 7 minutes: you predict, drag and solve, with instant feedback on every answer. It runs in your browser and needs JavaScript.

What you’ll learn

  • A program is a list of exact instructions, carried out in order.
  • Track the robot’s position and direction at every line.
  • “Left” and “right” are relative to the way the robot faces.

Steps

  1. A robot that does what it’s told
  2. Where does it end up?
  3. Your first program
  4. Left is the robot’s left
  5. Facing you
  6. Collect the gem
  7. Unscramble the program
  8. A long staircase