title: Multiplication of n shape list with n shape arrays elementwise in one line
body: <p>Let's take an example:</p>
  
  <pre><code>w =[1, 2] # as list
  p = [[[1, 2], [3, 4]], [[4, 5], [6, 7]]] # as array
  </code></pre>
  
  <p>The output should be:</p>
  
  <pre><code>output =[[[1, 2], [3, 4]], [[8, 20], [12, 14]]]
  </code></pre>
  
  <p>However, I wanted to have it done in one line. I am looking for a function that can take the arguments w and p and return output.</p>
  
  <p>Example using for loop:</p>
  
  <pre><code>dummy_array = np.zeros(shape=(2,2))
  
  for i in range(2):
      output[i]= w[i]*p[i]
  </code></pre>