11
Lesson 11 of 20 ยท Spot Patterns
Spot Patterns โ Part 19
Find what comes next in a pattern. This is part 19 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
- 1Run the code. See the pattern: A, B, A, B.
- 2Add two more lines to continue the pattern. Run.
- 3Change A and B to two different words. Run.
- 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!
