Arrays & the Playlist
In short: an array keeps its items in one contiguous block, same-size
slots back to back, so the computer reaches slot i by arithmetic —
address of slot 0 + i × slot size — never by searching. That's why reading
or writing any index is O(1). The same contiguity means slots can't have
gaps: inserting or deleting in the middle forces every item after it to
shift, which is O(n). Python's list is this structure, made dynamic by
tracking spare capacity so append is usually O(1) too.

Drag track 1 to the top of the playlist
Reading is free arithmetic. Dragging a track is a different story — slots can't have gaps, so opening one at index 1 means shifting everything after it one slot right, back to front so nothing is overwritten before it's moved:
Every item after the insert point moves once, back to front. Change i or new and re-run to count the moves yourself.
Deleting mirrors it — everything after the gap shifts left, front to back, so each slot is read before it's overwritten:
Deleting slot 0 moves every later track one slot left, which is why pop(0) costs O(n) and pop() costs nothing.
del playlist[0] leaves a hole at the front, and slots can't have gaps. 4 cells. Error at index 0.
The mistake: treating insert/pop(0)/del playlist[0] as cheap because
append/pop() are. Near the end that's a move or two; at the front it's
all n. Shift in the wrong direction and one track overwrites the rest:
This should open a gap at index 1 for "Echo". Instead "Tide" is copied into every later slot and "Ember" is lost.
❓ Cross-question — "A list can hold
[1, "Glow", 4.5]. How can every slot be the same size?" Slots don't hold the objects — they hold references to objects living elsewhere, and every reference is the same size (anArrayList<Object>, in Java terms).