title: How do you conditionally check for an escape character?
body: <p>I have a string which contains the escape character <code>\x</code> . However if i try to check for it with:</p>
  
  <pre><code>if char == "\x":
  </code></pre>
  
  <p>I receive the error </p>
  
  <pre><code>ValueError: invalid \x escape
  </code></pre>