Step 1 · Read and run
Numbered boxes
A piece of text (a string) is a row of characters, each in its own numbered box. The number is the index, and it starts at 0, just like range():
| P | y | t | h | o | n |
|---|---|---|---|---|---|
| 0 | 1 | 2 | 3 | 4 | 5 |
Put the index in square brackets after the string to get one character. len() gives the length: how many characters there are.
Run the program to carry on.