if you have a string 'mystr' for example,
so first character is mystr[0]
you can find index of the z in ziggy with:
mystr = 'hello zippy'a string is just a list of characters,
so first character is mystr[0]
print(mystr[0])will give you a 'h'
print(mystr[1])will give you a 'e'
you can find index of the z in ziggy with:
idx = mystr.index('zippy') print(mystr[idx])will give you a 'z'