You are viewing a single comment's thread. Return to all comments →
import re content = '' for _ in range(int(input())): content += input() + ' ' for _ in range(int(input())): uk = input() us = uk.replace('our', 'or') pattern = f'\\b({uk}|{us})\\b' print(len(re.findall(pattern, content)))
Seems like cookies are disabled on this browser, please enable them to open this website
UK and US: Part 2
You are viewing a single comment's thread. Return to all comments →