# 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]))]