I have a sentence in a text file that I want to display in python, but I want to display it so after every full stop(period) a new line starts.
For example my paragraph is
"Dr. Harrison bought bargain.co.uk for 2.5 million pounds, i.e. he
paid a lot for it. Did he mind? John Smith, Esq. thinks he didn't.
Nevertheless, this isn't true... Well, with a probability of .9 it
isn't."
But I want it display as the following
"Dr. Harrison bought bargain.co.uk for 2.5 million pounds, i.e. he
paid a lot for it.
Did he mind? John Smith, Esq. thinks he didn't.
Nevertheless, this isn't true...
Well, with a probability of .9 it isn’t."
This is made increasingly difficult with the other periods that appear in the sentence, such as in the website address, the 'Dr.', the 'Esq.' the '.9' and of course the first two dots in the ellipsis.
I am not sure how to approach this with regards to the other periods that exist in the text file, can anyone help? thank you.
"Your task is to write a program that given the name of a text file is able to write its content with each sentence on a separate line." <-- Task set