code: def evaluate(self, x):
          '''Evaluate this polynomial at value x, returning the result (which is the sum of all evaluations at each term).'''
          # Holds the sum over each term in the polynomial
          #c = 0
  
          # Holds the current power of x. This is multiplied by x after each term
          # in the polynomial is added up. Initialized to x^0 = 1
          #p = 1
  
          #for term in self.coefficients[::-1]:
          #    c = c + term * p
          #    p = p * x
          #return c
  
          # Faster alternative using Horner's Scheme
          y = self[0]
          for i in _range(1, len(self)):
              y = y * x + self.coefficients[i]
          return f evaluate(self, x):
          '''Evaluate this polynomial at value x, returning the result (which is the sum of all evaluations at each term).'''
          # Holds the sum over each term in the polynomial
          #c = 0
  
          # Holds the current power of x. This is multiplied by x after each term
          # in the polynomial is added up. Initialized to x^0 = 1
          #p = 1
  
          #for term in self.coefficients[::-1]:
          #    c = c + term * p
          #    p = p * x
          #return c
  
          # Faster alternative using Horner's Scheme
          y = self[0]
          for i in _range(1, len(self)):
              y = y * x + self.coefficients[i]
          return y
docs: Evaluate this polynomial at value x, returning the result (which is the sum of all evaluations at each term).