title: python output without a lot spacing
body: <p><a href="https://i.stack.imgur.com/R39cH.png" rel="nofollow noreferrer">this is the output when i run the code</a>I am having issues completing my code i am working on in python. Basically i am cleaning up a string and i am able to achieve my aim. but the output doesn't give me the necessary result. so the string has a lot of \n characters in it. bear in mind, i need to print out line by line but the spacing i get after each output print is the problem.</p>
  
  <p>The code :</p>
  
  <pre><code>x = "\n\n\n\nE\n\n\n\n\n                                        2003 Acura Mdx\n 
  </code></pre>
  
  <p>This is what i have done below:</p>
  
  <pre><code>for char in '" ",':  
  x = x.replace(char,'')
  print(x)
  </code></pre>
  
  <p>this is the output:</p>
  
  <p>E</p>
  
  <p>2003AcuraMdx</p>
  
  <p>NigerianUsed</p>
  
  <p>₦561000</p>
  
  <p>Mileage:219410Km</p>
  
  <p>Year:2003</p>
  
  <p>CarID:NG-445768</p>
  
  <p>Onitsha-SNB
  Onitsha</p>