13
This confuses everyone at first! It's because the computer sees the index as an 'offset' or 'distance' from the start. The first item has zero distance from the beginning.
It's like the ground floor of a building. In some places, we call it floor 0. Don't worry, you'll get used to it. Just remember: zero is the first number for a coder!
Log in to add a comment.