title: In python whats the opposite of rstrip()
body: <p>In python while reading a <code>.txt</code> file, if we need to remove any character at the end of a line(EOL) including escape sequences like (<code>\n</code>, <code>\t</code>,etc,.) we use <code>rstrip('\n')</code> like this.  </p>
  
  <p>But, What is the opposite of the <code>rstrip()</code>. I want to add a <code>\n</code> or <code>\t</code> at the end of each line in a file.</p>