I am assigning the array x to the array x2 and x3 but the operations do not result in anything and my final x2 and x3 are the same as x
x = np.random.randint(10, size=100)
x2 = x
x3 = x
for i in range(1,x.shape[0]-1):
x2[i] = (x[i-1]+x[i+1])/2
for i in range(3,x.shape[0]-3):
x3[i] = (x[i-2]+x[i-1]+x[i+1] + x[i+2])/4