The answer is A. The program prints:
54

Why?
sum adds up all the numbers in the list.
The code again
scores = [2, 23, 22, 7]
print(sum(scores))
Try it: change one number in the program and predict the new output before you run it.
The answer is A. The program prints:
54

sum adds up all the numbers in the list.
scores = [2, 23, 22, 7]
print(sum(scores))
Try it: change one number in the program and predict the new output before you run it.