import re
word='banana'
patten=re.compile('ana')
for i in patten.finditer(word):
print(i)
The code is supposed to output two matches, Why is there only one??
import re
word='banana'
patten=re.compile('ana')
for i in patten.finditer(word):
print(i)
The code is supposed to output two matches, Why is there only one??