1 | initial version |
Try this change:
polynomial = 0
Seems to do what you want then; naturally 0 = polynomial
is not valid Python in any case.
I don't know how that even got through the preparser without a worse error indicating what you did wrong more obviously - I have submitted Trac 24971 regarding this very subtle thing, which seems to be a double preparsing of Sage stuff in this case.