title: How to perform element-wise multiplication of two lists?
body: <p>I want to perform an element wise multiplication, to multiply two lists together by value in Python, like we can do it in Matlab.</p>
  
  <p>This is how I would do it in Matlab.</p>
  
  <pre><code>a = [1,2,3,4]
  b = [2,3,4,5]
  a .* b = [2, 6, 12, 20]
  </code></pre>
  
  <p>A list comprehension would give 16 list entries, for every combination <code>x * y</code> of <code>x</code> from <code>a</code> and <code>y</code> from <code>b</code>. Unsure of how to map this.</p>
  
  <p>If anyone is interested why, I have a dataset, and want to multiply it by <code>Numpy.linspace(1.0, 0.5, num=len(dataset)) =)</code>.</p>