the polynomial adt given the overview of polynomialswe now turn our attention to defining the polynomial adt define polynomial adt polynomial is mathematical expression of variable constructed of one or more terms each term is of the form ai xi where ai is scalar coefficient and xi is the unknown variable of degree polynomial()creates new polynomial initialized to be empty and thus containing no terms polynomialdegreecoefficient )creates new polynomial initialized with single term constructed from the degree and coefficient arguments degree()returns the degree of the polynomial if the polynomial contains no termsa value of - is returned getitem degree )returns the coefficient for the term of the provided degree thusif the expression of this polynomial is and degree of is providedthis operation returns the coefficient cannot be returned for an empty polynomial evaluatescalar )evaluates the polynomial at the given scalar value and returns the result an empty polynomial cannot be evaluated add rhspolynomial )creates and returns new polynomial that is the result of adding this polynomial and the rhspoly this operation is not defined if either polynomial is empty subtract rhspoly )creates and returns new polynomial that is the result of subtracting this polynomial and the rhspoly this operation is not defined if either polynomial is empty multiply rhspoly )creates and returns new polynomial that is the result of multiplying this polynomial and the rhspoly this operation is not defined if either polynomial is empty two constructors were specified for this abstract data type most objectoriented languages provide mechanism to construct an object in various ways in pythonwe define single constructor and supply default values for the arguments implementation to implement the polynomial adtwe must determine how best to represent the individual terms and how to store and manage the collection of terms in