s = 'bob'
numBob = 0
for i in range(1, len(s) - 1):
    if s[i - 1:i + 2] == 'bob':
        numBob += 1
print('Number of times bob occurs is: ' + str(numBob))

5dd9fa61457ac297b1772facd626054f4db3614a
<mask token>

<mask token>
for i in range(1, len(s) - 1):
    if s[i - 1:i + 2] == 'bob':
        numBob += 1
print('Number of times bob occurs is: ' + str(numBob))

s = 'bob'
numBob = 0
for i in range(1, len(s) - 1):
    if s[i - 1:i + 2] == 'bob':
        numBob += 1
print('Number of times bob occurs is: ' + str(numBob))
