Python's idiom for doing this is newList = oldList[:]
↧
Answer by erisco for List changes unexpectedly after assignment. Why is this and how can I prevent it?
↧
Python's idiom for doing this is newList = oldList[:]