pymi_operator_overload.py

Run Settings
LanguagePython
Language Version
Run Command
class MyInt(): def __init__(self, n): self.n = n def __add__(self, k): return (self.n + k.n) * 2 two = MyInt(2) three = MyInt(3) print(two + three == 10)
Editor Settings
Theme
Key bindings
Full width
Lines