get a list comprehension in list of lists `x`,[[X[i][j] for j in range(len(X[i]))] for i in range(len(X))]