In python we know A[:] is a copy of list A. There seems to be two ways to update a list A in Python.
A = [1, 2] #id(A)=140040769748648 A[:] = [2, 3] #id(A)=14