there are 2 functions to compute the degree of the polynomials : degree() and total_degree().
when we use them:
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>>> poly(x**3+y**5+z).degree() #wrong
3
>>> poly(x**3+y**5+z).total_degree() #correct
5
>>>poly(y**6*x**3+y**5+z).degree() #wrong
3
>>> poly(y**6*x**3+y**5+z).total_degree() #correct
9
___________________________________________________________________________________________________________________________________________________________________
mentors please clarify their significance. I am finding it a bit ambiguous.