title: Additional character "\" present when appending strings into a list python
body: <p>does anyone encountered this issue whereby when a string containing &quot;\&quot; is appended into a list, the function adds an additional &quot;\&quot; into the string?</p>
  <pre><code>file_list = ['file1.txt','file2.txt','file3.txt']
  res = [] 
  for i in range(len(file_list)):
      filename = file_list[i].replace(&quot;.&quot;, &quot;\.&quot;)
      print(filename)
      res.append(filename)
      print(res)
  print(res)
  </code></pre>
  <p>The result that I got from running the above was:</p>
  <pre><code>file1\.txt
  ['file1\\.txt']
  file2\.txt
  ['file1\\.txt', 'file2\\.txt']
  file3\.txt
  ['file1\\.txt', 'file2\\.txt', 'file3\\.txt']
  ['file1\\.txt', 'file2\\.txt', 'file3\\.txt']
  </code></pre>
  <p>I want to get the following result instead:</p>
  <pre><code>['file1\.txt', 'file2\.txt', 'file3\.txt']
  </code></pre>
  <h2>UPDATE</h2>
  <p>Ran the following code, still get the same output as above. Question not answered, but closed?</p>
  <pre><code>file_list = ['file1.txt','file2.txt','file3.txt']
  res = [] 
  for i in range(len(file_list)):
      filename = file_list[i].replace(&quot;.&quot;, &quot;\\.&quot;)
      print(filename)
      res.append(filename)
      print(res)
  print(res)
  </code></pre>