title: a = open("file", "r"); a.readline() output without \n
body: <p>I am about to write a python script, that is able to read a txt file, but with readline() there is always the \n output. How can i remove this from the variable ? </p>
  
  <pre><code>a = open("file", "r")
  b = a.readline()
  a.close()
  </code></pre>