Answer: Python Puzzler #2862

The answer is A. The program prints:

beep-boop-pong-byte

This answer was 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", "boop", "pong", "byte"]
print("-".join(sounds))

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