Rules

Here are the rules to remember about indexes of strings.

  • Each character in a string has a position, and that position is called its index.

  • In Python - and in many other programming languages - we start counting indexes at zero (instead of one).

  • All the characters in a string are counted - even spaces.