title: treat "\\n" as escape character in python
body: <p>how can I print &quot;\n&quot; as a normal newLine &quot;\n&quot;</p>
  <p>example:</p>
  <blockquote>
  <p><code>str = &quot;lorem\\nipsum&quot;</code></p>
  </blockquote>
  <h3>the output should be:</h3>
  <p><code>lorem</code><br />
  <code>ipsum</code></p>
  <h3>not : <code>lorem\\nipsum</code></h3>
  <h2>I tried :</h2>
  <blockquote>
  <p><code>print(str[6:])</code></p>
  </blockquote>
  <p>and more stuff but nothing work</p>
  <p>#THE IDEA IS TO GET RAID OF ONLY ONE BACKSLASH TO PRINT IT AS NEWLINE CHARACTER AS SHOULD</p>
  <blockquote>
  <p><code>ord(&quot;\x1c&quot;)</code></p>
  </blockquote>
  <blockquote>
  <p><code>&gt;&gt;28</code></p>
  </blockquote>
  <blockquote>
  <p><code>mystr = &quot;\\x1c&quot;</code></p>
  </blockquote>
  <blockquote>
  <p><code>ord(mystr[1:])</code></p>
  </blockquote>
  <pre><code>  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
  TypeError: ord() expected a character, but string of length 3 found```
  
  
  
  ## here's the actual code ##
  
  </code></pre>
  <p>import string</p>
  <p>lower = list(string.ascii_lowercase)
  lower_dec = []</p>
  <p>upper = list(string.ascii_uppercase)
  upper_dec = []</p>
  <p>nums = list(map(str,range(0,10)))
  nums_dec =[]</p>
  <p>def E(key,p):</p>
  <pre><code>cipherList = []
  cipherText = []
  for row in range(len(key)):
      c = 0
      for i in range(len(key[row])):
          c+= (ord(p[i])*key[row][i])%26
      cipherList.append(repr(chr(c)))
  
  
  for char in cipherList:
      cipherText.append(char.replace(&quot;'&quot;,''))
  
  
  return cipherText
  </code></pre>
  <p>key = [[2,3,5],[11,4,7],[20,12,12]]
  p = ['p','a','y']</p>
  <p>print(E(key,p))</p>
  <p>#that prints ['\x1c', '1', '.']</p>
  <pre><code></code></pre>