title: How to use \ in a string in python
body: <p>When I try to use </p>
  
  <pre><code>    print variable + "\filename"
  </code></pre>
  
  <p>the slash isn't recognized as a string character,
  however if I were to do  </p>
  
  <pre><code>    print variable + "\Filename"
  </code></pre>
  
  <p>capitalizing the first letter proceeding the slash... then the slash is recognized as a string character </p>
  
  <p>The only thing I was able to find online is that in some cases a \ with a letter preceding it may be used to end a string of raw characters but I don't understand this.</p>
  
  <p>So my question is why does this happen? And more importantly what is a way around this or a fix for this. Thank you.</p>