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>>>
1Random = "Whatever"#you can put anything here
2words2 = Random.split(" ")
3print('number of letters:')#you can delete this line...
4print(len(Random))#and this one. these lines just Tell you how many
5#letters there are
6while True:#you can get rid of this loop if you want
7 ask = int(input("what letter do you want?"))
8 print(Random[ask-1])