>>> name = 'abcdefgh'
>>> print(type(name))
<class 'str'>
>>> name[3]
'd'
>>> name[2:4]
'cd'
>>> name[2:4:2]
'c'
>>> name[2:6:2]
'ce'
>>> name[::2]
'aceg'
>>> name[::-1]
'hgfedcba'
>>> name1=name.upper()
>>> name1
'ABCDEFGH'
>>> name
'abcdefgh'
>>> name.replace('def','XXX')
'abcXXXgh'
>>> len(name)
8
>>> 'g' in name
True
>>> 'y' in name
False
>>> 'abc' in name
True
>>> 'xyz' in name
False
>>> name.find('g')
6
>>> name.find('y')
-1