import numpy as np # Create a 4x4 array with all elements set to 0 array = np.zeros((4, 4)) # Pad the array with a border of 1 array = np.pad(array, pad_width=1, mode='constant', constant_values=1) print(array)