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])
Two references. One list.

The update goes everywhere.
a very python moment