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 6/Mixed challengesClassroom edition
LEVEL 6Mixed challenges
PYTHON, PLOT TWIST!
Q58

Mutation, equality, and membership together

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

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