title: How to print a string literally in Python
body: <p>this is probably really simple but I can't find it.</p>
  
  <p>I need to print what a string in Python contains. I'm collecting data from a serial port and I need to know if it is sending CR or CRLF + other control codes that are not ascii.</p>
  
  <p>As an example say I had</p>
  
  <pre><code>s = "ttaassdd\n\rssleeroo"
  </code></pre>
  
  <p>then I would like to do is:</p>
  
  <pre><code>print s
  </code></pre>
  
  <p>Where it would show the \n\r rather than covert them into escape characters.</p>