Answer: Python Puzzler #1013

The answer is B. The program prints:

beep zap boop pong
What the program prints
Checked by running the program for real.

Why?

join glues the items of a list together, putting ‘ ‘ between each pair.

The code again

sounds = ["beep", "zap", "boop", "pong"]
print(" ".join(sounds))

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