Answer: Python Puzzler #500

The answer is A. The program prints:

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

Why?

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

The code again

level = 4
print("Level " + str(level + 4))

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