A python script like the following. The list 'a' cannot be updated correctly:
def test(b, a):
print(a)
a.append(10)
a = b
print(a)
a = [1, 2, 3]
b = [4, 5, 6]
test(b, a)
print(a)
The results were printed out like below. The list 'a' was changed as [1, 2, 3, 10] NOT [4, 5, 6]. Why?