You are viewing a single comment's thread. Return to all comments →
shouldn't the 'str2' in the print statement be replaced by 'pattern' as:
print([m.start() for m in re.finditer(pattern, str1)])
to get the correct output?
Seems like cookies are disabled on this browser, please enable them to open this website
The Grid Search
You are viewing a single comment's thread. Return to all comments →
shouldn't the 'str2' in the print statement be replaced by 'pattern' as:
print([m.start() for m in re.finditer(pattern, str1)])
to get the correct output?