I created 2d list, then copied it and change first element of a copy with f2 function. But somehow original list changes too. But I think that created copy by value, it's not referenced to the parent. How can I change copy list and do not change original?
def f2(m):
m[0][0] = 99
k = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
m = k[:][:] #[[1, 2, 3], [4, 5, 6], [7, 8, 9]]
print(k)
f2(k)
print(m)