3

Lesson 3 of 20 ยท Sequences & Order

Sequences & Order โ€” Part 11

Learn that order matters. Put steps in the right order. This is part 11 of 20.

What you'll learn

You will learn that code runs top to bottom in order, and that changing the order changes the result.

Steps

  1. 1Read the code above. Notice how each print() is on its own line โ€” the computer reads them top to bottom, one after another.
  2. 2The output would be: Step 1, Step 2, Step 3, Done! โ€” in that exact order. The order of lines decides the order of output.
  3. 3Imagine swapping Step 2 and Step 3. The output would change! In a sequence, order matters.
  4. 4A sequence is a list of instructions in order. Every program is built from sequences. You just learned the most basic building block of coding!

Key Terms

Sequence
A list of steps that happen one after another in order.
Order
The sequence in which steps run. Changing the order can change the result.
print()
A command that shows a message on the screen.
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 Sequences & Order for Kindergarten

Get the full Sequences & Order 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

Sequences & Order โ€” Part 11 โ€” Sequences & Order | Kindergarten Coding | LittleActivity | LittleActivity