The answer is B. The program prints:
[12, 13, 14]

Why?
append adds one item to the end of the list each time round the loop. The loop runs for n = 2, 3, 4.
Trace table
A trace table follows the program step by step. Here’s this one:
| n | n + 10 | results so far |
|---|---|---|
| 2 | 12 | [12] |
| 3 | 13 | [12, 13] |
| 4 | 14 | [12, 13, 14] |
The code again
results = []
for n in range(2, 5):
results.append(n + 10)
print(results)
Try it: change one number in the program and predict the new output before you run it.