class Calc:
def __init__(self, a, b):
self.a = a
self.b = b
def plus(self):
return self.a + self.b
def minus(self):
return self.a - self.b
print(Calc(3, 2).plus())
print(Calc(3, 2).minus())
Y2xhc3MgQ2FsYzoKICAgIGRlZiBfX2luaXRfXyhzZWxmLCBhLCBiKToKICAgICAgICBzZWxmLmEgPSBhCiAgICAgICAgc2VsZi5iID0gYgogICAgZGVmIHBsdXMoc2VsZik6CiAgICAgICAgcmV0dXJuIHNlbGYuYSArIHNlbGYuYgogICAgZGVmIG1pbnVzKHNlbGYpOgogICAgICAgIHJldHVybiBzZWxmLmEgLSBzZWxmLmIKICAgICAgICAKcHJpbnQoQ2FsYygzLCAyKS5wbHVzKCkpCgpwcmludChDYWxjKDMsIDIpLm1pbnVzKCkp