I am trying to create an array based on another, but I want to keep the original array. I tried this but original array is modified, and I dont know why
k1=[[1,2],[3,4]]
def foo(k):
k2=k
for i in range(len(k2)):
k2[i]=np.append(k2[i],i+10)
return k2