cópia profunda da lista de python
from copy import deepcopy
if __name__ == '__main__':
x = [1, 2]
y = [x, x]
# create a copy of list y
clone = deepcopy(y)
# remove the last item from the original list
x.pop()
# cloned list remains unchanged
print(clone) # [[1, 2], [1, 2]]
Testy Tarsier