Python, Plot Twist!
Operator adventures·60 questions

Python Predict Output — playful Python challenges

Read each Python snippet, predict what it prints, then reveal the answer and the plot twist behind it. Built for classrooms and curious students.

Level 3/Assignment operatorsClassroom edition
LEVEL 3Assignment operators
PYTHON, PLOT TWIST!
Q26

+= versus normal assignment

What’s the output? Think first. Trust your brain.

question_26.pyPython 3
1a = [1, 2]2b = a3a = a + [3]4print(a)5print(b)6print(a is b)
PREDICT. DISCUSS. REVEAL.YOUR BRAIN’S GOT THIS.26 / 60
SPEAKER NOTESQuestion 26