You are viewing a single comment's thread. Return to all comments →
Is this considered metaprogramming?
import re n = int(input()) text = '\n'.join([input() for _ in range(n)]) t = int(input()) for _ in range(t): word = input() word_uk = word.replace('ze', 'se') pattern = f'({word}|{word_uk})' print(len(re.findall(pattern, text)))
Seems like cookies are disabled on this browser, please enable them to open this website
The British and American Style of Spelling
You are viewing a single comment's thread. Return to all comments →
Is this considered metaprogramming?