The square brackets syntax can be used with data items of any data type that is a sequence, such as strings and lists. This consistency of syntax is one of the reasons that Python is so beautiful.
NOTE: the number between the square brackets is called an index, all Python index positions start at 0 and ends at the string length minus 1.
Let's see the first and the last index in the following example.
The method index() is called for the string s just to show you the first and last index. Do not worry about the method right now, it will be covered in detail in another lecture, String Operators and Methods.