Tell us what’s happening:
I cannot pass Step 6 and don’t understand why. The assignment says: Compute the vector norm and return the result from your norm method.
This is the code:
def norm(self):
norm = (self.x2 + self.y2)**0.5
Your code so far
# User Editable Region
class Vector:
def __init__(self, x, y):
self.x = x
self.y = y
def norm(self):
norm = (self.x**2 + self.y**2)**0.5
# 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/123.0.0.0 Safari/537.36 OPR/109.0.0.0
Challenge Information:
Learn Special Methods by Building a Vector Space - Step 6