Answer: Python Puzzler #26

The answer is B. The program prints:

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

Why?

len tells you how many items are in the list.

The code again

scores = [13, 12, 17, 29, 8, 9]
print(len(scores))

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