

def __mul__(self, scalar):
    return Vector2((self.x * self), (self.y * scalar))

dataset/ETHPy150Open PythonProgramming/Beginning-Game-Development-with-Python-and-Pygame/Chapter 6/gameobjects/vector2.py Vector2.__mul__/VarMisuse@20/24 `scalar`->`self`