Forum tips

Writing in Hebrew
If you post a forum message in Hebrew (or English mixed with Hebrew), add[[div style="direction:rtl;"]]
before your message, and[[/div]]
after it (each on a separate line).

Including Python code
When including python code in your message, if you don't want to lose the indentation, and also benefit from syntax highlighting, add[[code type="python"]]
before the code, and[[/code]]
after it (each on a separate line).

BoldPut ** before and after the text: a**b**c —> abc

UnderlinePut __ before and after the text: a__b__c —> abc

Raw textPut @@ before and after the text, to ignore formatting: @@a**b**c@@ --> a**b**c

I will add to Daniel's answer:
This is really dependent on how you define the system you work in: how you define "identity", and how you treat constant polynomials.
For example, if you treat polynomials as functions, and by "identical" you mean that they are truly the same mathematical object, then you can say (using lambda notation):$Z = \lambda x.0$, in this case $Z \ne 0$, but $\forall x.Z(x)=0$. Also, $0$ is a symbol, you can define it to be the natural number zero, the zero polynomial, or both.
On the other hand, WolframMathWorld states that "A quantity which rigorously assumes the value of zero is said to be identically zero." In that sense, yes, it is identically zero.

I do not think there is a definite answer to your question. I also think it would be safe to say that the zero polynomial is not equal to zero (the number), yet it is identically zero (as a matter of definition).

Of course, this has nothing to do with the homework, which is about python objects representing polynomials.