Conceptual
Login

Zero-Based Position Numbering in Sequences

Positions in a programming sequence are counted from zero, so the first item sits at position 0 and the last at one less than the count. A learner afterwards can convert between a human count and a zero-based position and name the item at a given position without off-by-one error.