I trying to find how many specific keyword in string but the output is not similar with the logic
input = raw_input('Enter the statement:') //I love u
keyword = raw_input('Enter the search keyword:') //love
count = 0
for i in input:
if keyword in i:
count = count + 1
print count
print len(input.split())
Expectation
1
3
Reality
0
3