title: how to remove a whitespace in a list in python?
body: <p>I'm new here so forgive me if there's anything unusual
  I know it's simple to remove some whitespaces
  but actually I'm not using strings, it's float elements list
  so I'm using append to put the numbers in the list but they are passed in like this:</p>
  
  <pre><code>[1.2, 3.5, 41.2, 2.9]
  </code></pre>
  
  <p>I want them to be like this:</p>
  
  <pre><code>[1.2,3.5,41.2,2.9]
  </code></pre>
  
  <p>any kind of help will appreciated </p>