Python - Magic Methods and Operator Overloading
What will be the output of the following code?
class Number:
def __init__(self, value):
self.value = value
def __gt__(self, other):
return self.value > other.value
n1 = Number(5)
n2 = Number(3)
print(n1 > n2)