f1
=
file(
"
hello.txt
"
)
count = 0
s = f1.read()
li = re.findall( " hello " ,s)
if len(li) > 0:
count = count + li.count( " hello " )
print str(count)
f1.close()
count = 0
s = f1.read()
li = re.findall( " hello " ,s)
if len(li) > 0:
count = count + li.count( " hello " )
print str(count)
f1.close()