I've tried below.
import re
sentences = "Glitches happened happened happened. Things go back to normal again."
print([re.findall(r"(\w+)\s\1", s) for s in sentences.split('.')])
I am wondering how to print the entire sentence(s) that contain duplicated words.