title: How to convert a vertical string to a horizontal one?
body: <p>how can I convert a vertical string into a horizontal one in Python?</p>
  <p>I tried:</p>
  <pre><code>result=astring.replace(&quot;\n&quot;, &quot;&quot;)
  </code></pre>
  <p>but it doesn't do anything, it remains vertical..</p>
  <p>The code is the following:</p>
  <pre><code>names = &quot;&quot;.join(name).replace(&quot;\n&quot;,&quot;&quot;)
  print(names)
  </code></pre>
  <p>where &quot;names&quot; is:</p>
  <pre><code>Federica        
  Silvio
  Enrico
  </code></pre>
  <p>I would like:</p>
  <pre><code>Federica, Silvio, Enrico
  </code></pre>