Answer: What Comes Next? #120

The answer is A: 12 dots.

The finished pattern: 2 dots, 4 dots, 6 dots, 8 dots, 10 dots, 12 dots.
The finished pattern.

The rule

Each picture has 2 more dots 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 + 2

When you run it, Python prints:

2
4
6
8
10
12

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