#212·numpy-100

Alternative solution for Q15

Author: ghostCreated Jul 13, 2024Updated Aug 28, 2024

I think learning pad function may be helpful and it is more dynamic A=numpy.zeros([4,4]) print(numpy.pad(A,(1,1),"constant",constant_values=1))