title: Repeat elements of list python
body: <p>I have a list of floats and want to multiply each value by a number. Code will explain it better:</p>
  
  <pre><code>list = [1.0,2.0,3.0]
  </code></pre>
  
  <p>and now I want to do an operation so that:</p>
  
  <pre><code>list =[1.0,1.0,1.0,2.0,2.0,2.0,3.0,3.0,3.0]
  </code></pre>
  
  <p>so for example multiply each value by 3 in the way shown.
  Unfortunately I don't have a clue how to do that.</p>