Answer: Python Puzzler #2333

The answer is D. The program prints:

48

This answer was checked by running the program for real.

Why?

sum adds up all the numbers in the list.

The code again

scores = [5, 6, 2, 9, 18, 8]
print(sum(scores))

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