I created a function f which uses a 2-dimension list as parameter, but after this function the list does not change at all. As the code below:
def f(t: [[int]]):
    for eachrow in t:
        eachrow = eachrow[1:]
        eachrow.append(0)
A = [[2, 10, 0], [3, 1, 2], [3, 2, 1]]
f(A)
print(A)  # -> [[2, 10, 0], [3, 1, 2], [3, 2, 1]]
 
     
    