Copiar una matriz 2D en Python
from copy import copy, deepcopy
y = deepcopy(x)
Nervous Nightingale
from copy import copy, deepcopy
y = deepcopy(x)
# This is assuming that it is a matrix
newArr = [[arr[i][j] for i in range(len(arr))] for j in range(len(arr[0]))]
b = [x[:] for x in a]