I'm using "Sage," but I do not think that it is relevant for this question.
I have made the following definitions, and attempted to implement an if loop:
Q = DiagonalQuadraticForm(ZZ,[1,1,1,1])
L = Q.representation_number_list(10)
for i in range(len(L)):
if L[i] == 0 % 2:
print i
Upon looking up Python demos, it seems as though my syntax is correct and (I haven't been made aware of any syntax errors.)
However, nothing is being printed! In fact, if I declare "i" in the next textbox, all that displays is "9," which doesn't change despite my fiddling with the modulus. What is wrong?