title: Keep the new line symbols in the string when writing in a text file Python
body: <p>I have a list of strings, and some of the strings contain '\n's. I want to write this list of strings into a text file and then later on read it back and store it to a list by using <code>readlines()</code>. I have to keep the original text; meaning not removing the new lines from the text.</p>
  
  <p>If I don't remove all these new lines then of course <code>readlines()</code> will return a larger number of strings than the original list.</p>
  
  <p>How can I achieve this? Or there's really no way and I should write in other formats instead. Thanks.</p>