Answer: Python Puzzler #492

The answer is D. The program prints:

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

Why?

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

The code again

level = 8
print("Level " + str(level + 6))

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