LEVEL 5Identity & membership
PYTHON, PLOT TWIST! Q46
Membership and nested structures
What’s the output? Think first. Trust your brain.
question_46.pyPython 3
1items = [[1, 2], [3, 4], [5, 6]]2print([1, 2] in items)3print(1 in items)4print(1 in items[0])5print(3 in items[1])
Nested list energy.

Check which room you are in.
a very python moment