Learn Special Methods by Building a Vector Space - Step 6

Tell us what’s happening:

Despite combing through the forums and quadruple-checking my code and formula, the test still does not allow me to pass. Am I missing something?

Your code so far


# User Editable Region

class Vector:
    def __init__(self, x, y):
        self.x = x
        self.y = y
        
    def norm(self):
        return math.sqrt(self.x**2, self.y**2)

# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36

Challenge Information:

Learn Special Methods by Building a Vector Space - Step 6

Try using it below your code, to check if everything works as expected. Ie.:

v1 = Vector(3, 4)
print(v1.norm())

As it turns out I had forgotten to reformat the two addends from a previous sum() operation, so it ended up as “(self.x2, self.y2)” I see now that it is technically a tuple.