14
Lesson 14 of 20 ยท Step-by-Step Programs
Step-by-Step Programs โ Part 3
Write a short program by putting commands in order. This is part 3 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
- 1A program is a list of commands. Read the code โ it has 4 commands that would execute in order: Move, Turn, Move, Stop.
- 2Each print() is one command. The computer follows them top to bottom, like following a recipe step by step.
- 3If we swapped Command 2 and Command 3, the robot would Move first, then Move again, then Turn โ a completely different path!
- 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!
๐จ๏ธView in Shop
Checkout complete lesson on Step-by-Step Programs for 1st Grade
Get the full Step-by-Step Programs track as a printable PDF โ all lessons, worksheets, and answer keys.
