I\'m making a Polynomial python class and as part of that, I need to print a polynomial nicely. The class is given a list that represents the coefficients of the polynomial
There are several issues:
range at 0 and not 1;len(self.coeffs)-1-i;I would personnaly handle [2,3,4] as 2+3x+4x^2 since it would be easier to handle more complicated computations later, but you may have good reasons to want the contrary.