title: Python remove enter / space between lines
body: <p>OK so I have read a lot of the post that suggest how to eliminate that extra space, but for whatever reason it seems I can't apply those suggestions to my system, so I am here asking for your help.</p>
  
  <p>These are the last few lines of my code:</p>
  
  <pre><code>    for line in rline[start+5 : end] :
          words = line.split()
          word1 = int(words[1])
          print &gt;&gt;opennew, "%s%s" % (word1,line[30:])
  </code></pre>
  
  <p>And the new "opennew" file looks like this :</p>
  
  <pre><code>    1        0.876153    0.152889   -0.047464
  
      2        1.011880   -1.161641   -2.096289
  
      3        0.883419    1.558736    1.966913
  
      4        2.010367   -1.140725    1.053368
  </code></pre>
  
  <p>While what I really want is:</p>
  
  <pre><code>    1        0.876153    0.152889   -0.047464
      2        1.011880   -1.161641   -2.096289
      3        0.883419    1.558736    1.966913
      4        2.010367   -1.140725    1.053368
  </code></pre>
  
  <p>Is there anyway I add to the code something to remove that additional (unwanted) enter/space from my input?</p>
  
  <p>Thanks a lot for the help.</p>
  
  <p>PS: 
  (Please do not ask why I split the lines in the code, there is a purpose for this will have an application in a future (better) code)</p>