answered 1 year ago
Your code computes A and A.det(), but nowhere you ask for their output. Try, e. g. :
A
A.det()
for i in range(6): A = D(i) show(A, A.det())
Demonstration here.
HTH,