Vector(x, y) supporting v1 + v2 (component-wise, returning a new Vector) and v * k (scalar multiply via __mul__). Include a __repr__ like 'Vector(3, 4)' so results are readable. Do not mutate the operands.repr(Vector(1, 2) + Vector(3, 4))
'Vector(4, 6)'
__add__ builds a fresh instance.
def __add__(self, other): return Vector(...).
__mul__ takes the scalar as its second parameter.