Tell us what’s happening:
im so close this is what the instructions say You should define class attribute named degree and annotate it with int within the Equation class.
Your code so far
from abc import ABC, abstractmethod
# User Editable Region
class Equation(ABC):
degree = int
def __init__(self):
pass
@abstractmethod
def solve(self):
pass
@abstractmethod
def analyze(self):
pass
class LinearEquation(Equation):
def solve(self):
pass
def analyze(self):
pass
# User Editable Region
lin_eq = LinearEquation()
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Challenge Information:
Learn Interfaces by Building an Equation Solver - Step 9