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)
New list. New me.

The old list did not get the memo.
a very python moment