title: python SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape error
body: <p>i have written a python code in which i have already assigned variable 'emailentry' a string value. what i want to do now is add that string value in the last line of my text file known as 'wattpad.txt'</p>
  
  <p>i have written this code</p>
  
  <pre><code>with open("C:\Users\BRS\Desktop\wattpad.txt", 'a') as outfile:
      outfile.write(emailentry /n)
  </code></pre>
  
  <p>and getting error</p>
  
  <pre><code>File "C:\Users\BRS\Desktop\wattpad acc maker.py", line 41
      with open("C:\Users\BRS\Desktop\wattpad.txt", 'a') as outfile:
                ^
  SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
  </code></pre>
  
  <p>pls help
      [Finished in 0.2s]</p>