Answer: What Comes Next? #160

The answer is A: 11 dots.

The finished pattern: 1 dot, 3 dots, 5 dots, 7 dots, 9 dots, 11 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 = 1
for step in range(6):
    print(dots)
    dots = dots + 2

When you run it, Python prints:

1
3
5
7
9
11

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