def evaluate(self, substitution: int | float) -> int | float:
        result: int | float = 0
        for i in range(self.degree + 1):
            result += self.coefficients[i] * (substitution**i)
        return result