If I have a speech, for example, that is being inputted by the user:
speech = input("Enter your speech: ")
and if this input is (for example):
Hello, welcome to my speech.
This is my exemplar speech.
Which I am trying to analyze.
But if I were to print(speech), I'd get an output of:
"Hello, welcome to my speech."
but not the other 2 lines. How can I recognize the linefeed (\n) and replace it as a space, so my output will be:
"Hello, welcome to my speech. This is my exemplar speech. Which I am trying to analyze."