LEVEL 5Identity & membership
PYTHON, PLOT TWIST! Q40
List membership
What’s the output? Think first. Trust your brain.
question_40.pyPython 3
1a = [1, 2, [3, 4]]2print(3 in a)3print([3, 4] in a)4print(3 in a[2])5print(1 not in a)
A list inside a list.

Membership is not a treasure hunt.
a very python moment