1. 문자열을 스페이스로 분리하여 대체s = 'Macron made the announcement to mark the opening of the Paris AI Summit.' # 바꾸고자 하는 단어들 li = ["announcement", "opening", "Summit."] # 새로운 단어 k = "Trump" # 스페이스로 분리해 단어 리스트를 만들고 바꿀 단어들과 같다면 새로운 단어로 대헤 res = ' '.join([k if word in li else word for word in s.split()]) print(res)-> Macron made the Trump to mark the Trump of the Paris AI Trump 2. 정규표현 '|' 을 이용 import re s = ..