Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python create 2d array deep copy

# 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]))]
 
PREVIOUS NEXT
Tagged: #python #create #array #deep #copy
ADD COMMENT
Topic
Name
6+9 =