10

Lesson 10 of 20 ยท Spot Patterns

Spot Patterns โ€” Part 18

Find what comes next in a pattern. This is part 18 of 20.

What you'll learn

You will recognize a simple pattern in the code, extend it with more lines, and create your own small pattern.

Steps

  1. 1Run the code. See the pattern: A, B, A, B.
  2. 2Add two more lines to continue the pattern. Run.
  3. 3Change A and B to two different words. Run.
  4. 4Make a pattern with three things (e.g. 1, 2, 3, 1, 2, 3). Run.

Key Terms

Pattern
Something that repeats in a predictable way (e.g. A, B, A, B).
Repeat
To do or show the same thing again.
Predict
To guess what comes next based on what you've seen.
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!

Spot Patterns โ€” Part 18 โ€” Spot Patterns | Pre-School Coding | LittleActivity | LittleActivity