word = "HelpA"
>>> word[4]
'A'
>>> word[0:2]
'He'
>>> word[2:4]
'lp'
>>> word[:2] # The first two characters
'He'
>>> word[2:] # Everything except the first two characters
'lpA'
>>> word = 'HelpA'
>>> word[-1] # The last character
'A'
>>> word[-2] # The last-but-one character
'p'
>>> word[-2:] # The last two characters
'pA'
>>> word[:-2] # Everything except the last two characters
'Hel'
>>> n = input("Enter a numerical expression: ")
Enter a numerical expression: 12
>>>print (n)
12
>>>pythagoras = "There is geometry in the humming of the strings, there music in the spacing of the spheres."
>>>print(pythagoras.find('string'))
40
>>>print(pythagoras[40:])
strings, there music in the spacing of the spheres.
>>>print(pythagoras.find('sphere'))
83
>>>print(pythagoras[83:])
spheres.
>>>print(pythagoras.find('algebra'))
-1