title: Adding a border of 1 to a list in python
body: <pre><code>import numpy as np     
  s=[[0, 0, 0, 0,0,0,0,0], [1, 1, 1, 1, 1,1,1, 0],[1, 1, 1, 1, 1,1,1, 0],[1,0,0,0,0,1,1,0], 
  [0,1,1,1,0,0,0,0],[0,1,1,1,1,1,1,1],[0,1,1,1,1,1,1,1],[0, 0, 0, 0, 0, 0,0,0,0]]
  k=np.pad(s,((1,1),(1,1)),mode='constant',constant_values=1)
  
  ValueError: operands could not be broadcast together with remapped shapes [original-&gt;remapped]: (2,2) and requested shape (1,2)
  </code></pre>
  
  <p>I want to pad a matrix with border of 1 but this error shows up</p>
  
  <p>any help is appriciated</p>