First time here? Check out the FAQ!
answered 2017-03-07 05:30:58 +0100
That's how python works. You can use
q=copy(p)
or another popular idiom in python is to take a "slice" of a list, which is a copy, that happens to cover the whole list:
q=p[:]