Answer: What Comes Next? #156

The answer is A: yellow diamond.

The finished pattern: yellow diamond, yellow diamond, orange circle, orange circle, yellow diamond, yellow diamond, orange circle, orange circle, yellow diamond, yellow diamond.
The finished pattern.

The rule

The pattern repeats every 4 things: yellow diamond, yellow diamond, orange circle, orange circle. Then it starts again from the beginning.

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.

pattern = ["yellow diamond", "yellow diamond", "orange circle", "orange circle"]
for position in range(10):
    print(position + 1, pattern[position % len(pattern)])

When you run it, Python prints:

1 yellow diamond
2 yellow diamond
3 orange circle
4 orange circle
5 yellow diamond
6 yellow diamond
7 orange circle
8 orange circle
9 yellow diamond
10 yellow diamond

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