1>>> s = "python"
2>>> s[3]
3'h'
4>>> s[6]
5Traceback (most recent call last):
6 File "<stdin>", line 1, in <module>
7IndexError: string index out of range
8>>> s[0]
9'p'
10>>> s[-1]
11'n'
12>>> s[-6]
13'p'
14>>> s[-7]
15Traceback (most recent call last):
16 File "<stdin>", line 1, in <module>
17IndexError: string index out of range
18>>>