I am trying to format a list neatly that I have extracted using regex. I would like to have each sentence in its own line and remove the \n characters:
words = ['billion']
sentences = [sentence for sentence in text_1 if any(
w.lower() in sentence.lower() for w in words)]
print(sentences)
Image of current output:
