Lists are the first data structure you learn in Python. They are also the source of the most interview mistakes. These five problems test list behavior that most developers misunderstand until they get it wrong under pressure.

Work through each one before reading the answer.

Problem 1: The Slice That Does Nothing

a = [1, 2, 3, 4, 5]

b = a[:]