` mat = [[3],[4],[5],[5],[3]] ROWS = len(mat) COLS = len(mat[0]) res = [[[0] for i in range(ROWS)] for i in range(COLS)] res = res[0] res `