title: How to add value to a nested listed based on another list?
body: <p>I am not sure if the title makes sense but I have two lists:</p>
  <pre><code>a = [[8, 23, 45, 12, 78, 58], [2,3,4,1,5,4], [6, 7, 6, 9, 5, 8] , [1, 2, 4, 7, 8]]
  b = [1, 0 , 1 , 2]
  </code></pre>
  <p>I want to try to multiply all of a[0] with b[0] and repeat this for all the others.
  Thus, have an output like:</p>
  <pre><code>[8,23, 45, 12, 78, 58], [0, 0, 0, 0, 0, 0], [6, 7, 6, 9, 8], [2, 4, 8, 14, 16]
  </code></pre>
  <p>I tried using for loop with nested loop but I end up multiply all of b with all of a. For example, I get:</p>
  <pre><code>8
  23
  45
  12
  78
  58
  0
  0
  0
  0
  0
  6
  </code></pre>
  <p>and so on.</p>
  <p>Is it possible to do with for loops? or Is there another way I should consider doing it?</p>