class point:
def __init__(self, x, y):
self.x = x
self.y = y
def sum(self):
return self.x + self.y
a = point(3, 4)
print(a)
print(a.x, a.y)
print(a.sum())
Y2xhc3MgcG9pbnQ6CglkZWYgX19pbml0X18oc2VsZiwgeCwgeSk6CgkJc2VsZi54ID0geAoJCXNlbGYueSA9IHkKCWRlZiBzdW0oc2VsZik6CgkJcmV0dXJuIHNlbGYueCArIHNlbGYueQphID0gcG9pbnQoMywgNCkKcHJpbnQoYSkKcHJpbnQoYS54LCBhLnkpCnByaW50KGEuc3VtKCkp