title: Way to multiply each element of one array to PARTS of another?
body: <p>I am newbie in programming and try to find out how to multiply</p>
  
  <pre><code>[1,1,0]
  </code></pre>
  
  <p>to</p>
  
  <pre><code>[4,9,7,2,1,6]
  </code></pre>
  
  <p>for the next result output</p>
  
  <pre><code>[4,9,7,2,0,0]
  </code></pre>
  
  <p>As you see I want to multiply each value of [1,1,0] array to each two of second array by shifting in them</p>
  
  <pre><code>[1..] * [4,9..] = [4,9]
  [.1.] * [.7,2.] = [7,2]
  [..0] * [..1,6] = [0,0]
  </code></pre>
  
  <p>As example in js i writed something like</p>
  
  <pre><code>var firstArray = [1,1,0];
  var secondArray = [4,9,7,2,1,6];
  var shift = secondArray / firstArray;
  var startpos = 0;
  var outArray = [];
  
  for(i=0; i&lt; firstArray.length; i++){
      for(z=i; z&lt; shift+i; z++){
          outArray.push(firstArray[i] * secondArray[z]);
      }
  }
  
  console.log(outArray);
  </code></pre>
  
  <p>It may be in python</p>