range(N) makes a row of numbered cabins: 0, 1, 2 … N-1. Each cabin comes around to the boarding platform once. Watch the numbers — they start at ZERO.
💡 range(5) gives 0, 1, 2, 3, 4 — five numbers, starting at zero, ending at four. Not 1 to 5!