Answer: What Comes Next? #159

The answer is B: 7 dots.

The finished pattern: 2 dots, 3 dots, 4 dots, 5 dots, 6 dots, 7 dots.
The finished pattern.

The rule

Each picture has 1 more dot than the one before.

The pattern as Python code

Here is a tiny Python program that follows the same rule. Type it into IDLE and run it to print the whole pattern, including the answer.

dots = 2
for step in range(6):
    print(dots)
    dots = dots + 1

When you run it, Python prints:

2
3
4
5
6
7

Pixel says: Try changing a number in the code and run it again. Can you make the pattern go on for 20 steps? Meow!