I have the following function:
def myfunc(x):
y = x
y.append(' appendix') # change happens here
return y
x = []
z = myfunc(x)
print(x) # change is reflected here, and appendix is printed
how can I assure that changes x aren't reflected in the code that calls the function?