If I have a large multiline input and I run this line:
story = input()
it reads it as two inputs and my program doesn't process it correctly. I found a fix on stackoverflow that I modified to look like this:
story = []
while True:
try:
line = input()
except EOFError:
break
story.append(line)
story = ' '.join(story)
But I would need to use ctrl+D to induce an EOFError to stop the input. Is there a more intuitive way on Python to copy paste a large multiline input?