iterating over quotient ring and polynomial ring
Hello
I have been studied some finite algebraic structure as follows:
P.<v> = PolynomialRing(GF(2))
R.<v> = P.quotient((v^2-v))
T.<x> = PolynomialRing(R)
R is a quotient ring with elements : 0,1,v,1+v. I want to list all of the polynomials with degree 2. So I write:
for r in T.polynomials(of_degree=2): r
but the error is "object does not support iteration".
And also the same problem arises when I want to list the elements of R.
Is there any solution to this problem? How can I iterate over this structure?
thank you