title: Error while opening file in python
body: <pre><code>**w = open("C:\Users\kp\Desktop\example.csv", "w+")**
  </code></pre>
  
  <p>The above code shows the following error</p>
  
  <pre><code>**&gt; w = open("C:\Users\kp\Desktop\example.csv", "w+")
              ^
  SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape**
  
  Process finished with exit code 1
  </code></pre>
  
  <p>What can be the actual reasons and possible solutions to this problem?
  Note that I'm using PyCharm to work with python, and working with '.csv' files.</p>