title: adding zero values to 1-D array and fitting it in 2D array so that no error is thrown
body: <p>i have 1-D arrays of variable sizes inside a for loop and i'm putting these arrays in rows of a 2d array which is of size 40x4000. How can i append zeros to the end of the 1-D array such that the final size becomes 1x4000 and its able to fit in the 2d array?</p>
  
  <p>eg. </p>
  
  <pre><code>size of 1-D: 3700 , so add 300 zeros at the end
  size of 1-D: 3800 , so add 200 zeros at the end
  
  for i in range(n)
     s = func(i) #returns row vector
     # what to do here?
     two_dim[i] = s
  </code></pre>
  
  <p>EDIT: these are numpy arrays and not lists   </p>