Answer: Python Puzzler #339

The answer is B. The program prints:

50
What the program prints
Checked by running the program for real.

Why?

sum adds up all the numbers in the list.

The code again

scores = [12, 2, 4, 10, 22]
print(sum(scores))

Try it: change one number in the program and predict the new output before you run it.