Answer: Python Puzzler #543

The answer is C. The program prints:

Level 10
What the program prints
Checked by running the program for real.

Why?

Python works out level + 9 first, which is 10. str() turns the number into text so it can be joined onto “Level “.

The code again

level = 1
print("Level " + str(level + 9))

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