Python - Magic Methods and Operator Overloading
Given this class, how would you modify it to support chaining additions like
a + b + c?class Box:
def __init__(self, size):
self.size = size
def __add__(self, other):
return Box(self.size + other.size)