How to or What is the most efficient way to add an empty row/col of zeros to a matrix in python?

im trying to do a dynamic programming problem, and im wondering whats a efficient way to pad a matrix with a row of 0's and a column of 0's to begin with. For example:

matrix_original = [  
  [0,1,1,1],
  [1,1,1,1],
  [0,1,1,1]]

matrix_afterwards =[
  [0,0,0,0,0],    
  [0,0,1,1,1],
  [0,1,1,1,1],
  [0,0,1,1,1]]```
  
best to add a row of zeros then a zero in each row, or to make an empty row of n+1 x m+1 matrix and copy over the numbers?
or is there some other good suggestion
Comments (1)