title: Replace '\n' with ' 'space in string using python
body: <p>I have a string of the below form:</p>
  
  <pre><code>"\nMy objective is to work with a progressive &amp;amp; innovative 
  organisation where I can implement my skills, knowledge and \nachieve 
  success.\n\nPHP\nSDE 2 \nQuikr\nZend\n(CommonFloor merged with 
  Quikr)\nTasks\nTo develop Quikr Jobs portal\nLaravel\nTo develop 
  intent-form to increase o\xef\xac\x84ine signups\nTo develop sales CRM 
  tool\nJava\n \nSDE 1 J2EE\nCommonFloor\nTasks\nJava Spring\nTo work on 
  hybrid mobile app for residential communities\nTo develop APIs for 
  CommonFloor Groups\nJavaScript\n\nSDE 1 \njQuery\nIDrive India Pv
  Ltd.\nTasks\nAngular JS\nTo develop APIs for cloud storage\nTo add  front-end functionalities for online backup and data sync\nGulp\n\nSDE 1 "
  </code></pre>
  
  <p>I want to replace <code>'\n'</code> with <code>space</code> using python. I tried this command:</p>
  
  <pre><code>doc=doc.replace('\n',' ')
  </code></pre>
  
  <p>but it's not replacing '\n' with space. How I can do this?</p>