Hi.
I’m on this step which asks to test ‘norm’ by passing v1 in a print call statement… well, I think I did the correct thing and even got the correct numeric output (3.605551275463989) on the console, and yet the tutorial won’t let me through… what am I doing wrong?
class Vector:
def __init__(self, x, y):
self.x = x
self.y = y
def norm(self):
return (self.x**2 + self.y**2)**0.5
v1 = Vector(2, 3)
print(Vector.norm(v1))
Thank you.
Michal.