Interactive lesson · live visualisation · quizzes
Pick a creation style — the code below updates live, and you can ▶ play the build to watch each element appear.
Each element pops in as the list grows.
Click any box · pointer flies to your pick · indices shown above/below.
Current element is highlighted with a bouncing pointer.
Every click below updates this code AND animates the list. Undo if you regret something!
a = b doesn't copy — both names point to the same list. Use b = a.copy() or b = a[:].Edit a and b on the right. Press ▶ Merge to watch items fly into c.
c. Both a and b stay exactly the same — nothing is mutated.