S = 'xxxxSPAMxxxxSPAMxxxx'where = S.find('SPAM') # search for positionprint where # occurs at offset 4