First time here? Check out the FAQ!
answered 11 years ago
Just another suggestion:
L = [random_matrix(ZZ,2,2) for k in range(20)] def list_of_lists(L,ncol): return [L[k:k+ncol] for k in range(0,len(L),ncol)] html.table(list_of_lists(L,5))