I'm in Python 3 trying to create a program that analyzes a text.
The program asks for an input (should be always a string) like this

```
text=input('Inster a text: ')

```

In principle, if I input something like

```
> Today was my best day at the restaurant

```

my program performs his calculations right (i.e. understands the whole input as a single string).

The problem comes when I try to insert a complex text like the first 9 verses of the Divine Comedy (when asked for that input).

```
> Nel mezzo del cammin di nostra vita
mi ritrovai per una selva oscura,
ché la diritta via era smarrita.

Ahi quanto a dir qual era è cosa dura
esta selva selvaggia e aspra e forte
che nel pensier rinova la paura!

Tant' è amara che poco è più morte;
ma per trattar del ben ch'i' vi trovai,
dirò de l'altre cose ch'i' v'ho scorte.

```

In this case:

1. It interprets the apostrophes marks (') as enclosing a text. Making the rest of the text looks like a series of commands (for example the **altre cose ch** part in the last verse becomes a string and the text written out of that becomes a series of commands)
2. It interprets the "del" word (that appears in the first and eigth lines) as the command *delete*
3. It interprets the "dir" word (that appears in the fourth line) as the command *direction*

I discovered that if I add a double apostrophe (") at the beggining and the end of the text and if the text apeared in 1 single line then it interprets the input right (as an entire string). To include the (") at the beginning and end of my input text is not a great deal, but the part when I make the text appear in a single line (combining the verses in a single sequence by adding `\` at the end of each verse for example) is extremely tedious when introducing large texts.

How can my program interpret some input like that as an entire string and avoid all of this problems? (one way of solving is answering the question: how can I combine several code lines in a single string sequence without spending hours?)