<gh_stars>0
# -*- coding: utf-8 -*-
"""
SAssume s is a string of lower case characters.

Write a program that prints the number of times the string 'bob' occurs in s. For example, if s = 'azcbobobegghakl', then your program should print

Number of times bob occurs is: 2
"""
s = input('please enter a string: ')
s1 = "bob"
count = 0
for i in range(len(s)):
    if s[i:i+3] == s1:
        count += 1
print(count)
# -*- coding: utf-8 -*-
"""
SAssume s is a string of lower case characters.

Write a program that prints the number of times the string 'bob' occurs in s. For example, if s = 'azcbobobegghakl', then your program should print

Number of times bob occurs is: 2
"""
s = input('please enter a string: ')
s1 = "bob"
count = 0
for i in range(len(s)):
    if s[i:i+3] == s1:
        count += 1
print(count)
# -*- coding: utf-8 -*- SAssume s is a string of lower case characters.  Write a program that prints the number of times the string 'bob' occurs in s. For example, if s = 'azcbobobegghakl', then your program should print  Number of times bob occurs is: 2