title: Join float list into space-separated string in Python
body: <p>I have a list of floats in python:</p>
  
  <pre><code>a = [1.2, 2.9, 7.4]
  </code></pre>
  
  <p>I want to join them to produce a space-separated string - ie.:</p>
  
  <pre><code>1.2 2.9 7.4
  </code></pre>
  
  <p>However, when I try:</p>
  
  <pre><code>print " ".join(a)
  </code></pre>
  
  <p>I get an error because they're floats, and when I try:</p>
  
  <pre><code>print " ".join(str(a))
  </code></pre>
  
  <p>I get </p>
  
  <pre><code>[ 1 . 2 ,   1 . 8 ,   5 . 2 9 9 9 9 9 9 9 9 9 9 9 9 9 9 8 ]
  </code></pre>
  
  <p>How can I join all of the elements, while converting the elements (individually) to strings, without having to loop through them all?</p>