Strange question: I want this expression to be True.
1+1==3
, although I know it’s not :).
if 1+1==3:
print("This is True...")
I know I can do it by creating a class (let’s say a
) and overloading its __add__
function, but it requires me to write a(1)+a(1)==3
.
Can I do it without writing an additional code (sure I can write code before and after, but the line above will be as is)?
question from:https://stackoverflow.com/questions/65865104/turn-11-3-to-return-true-on-python