Python - Magic Methods and Operator Overloading
You want to create a class Vector that supports adding vectors and multiplying by a number. Which methods should you define to support
v1 + v2 and v1 * 3 where v1 and v2 are Vector objects?