Learn Interfaces by Building an Equation Solver - Step 9

Tell us what’s happening:

Suggestion:

Didn’t know where else to post this so I am posting on the forum where primary contributors/moderators frequent.

This particular step may need a slight adjustment on how the example is displayed within the code block. As someone who uses Typescript and JavaScript it took me a few googles to realise the <> symbols are unnecessary. I would suggest the variable: type code block be updated to avoid any use of the < or > characters!

:slight_smile:

Your code so far

from abc import ABC, abstractmethod

# User Editable Region

class Equation(ABC):
    
    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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 OPR/114.0.0.0

Challenge Information:

Learn Interfaces by Building an Equation Solver - Step 9

Hi welcome to the forum :wave:

I think this is a convention used throughout the curriculum, but I’m not 100% sure.

You can definitely open an Issue on github for further discussion:
https://github.com/freeCodeCamp/freeCodeCamp/issues