m,n = 6,6 tmp = [1 for j in range(m)] l = [tmp.copy() for i in range(n)] print(l) print("update") l[0][0] = 2 print(l)