0
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??

0 Answers0