Python - Magic Methods and Operator Overloading
What will be the output of this code?
class Number:
def __init__(self, value):
self.value = value
def __add__(self, other):
return self.value + other.value
num1 = Number(5)
num2 = Number(10)
print(num1 + num2)