Дан код:
Вывод: 3
class A:
def __init__(self, x):
self.x = x
def __and__(self, other):
return self.x + other.x
a1 = A(1)
a2 = A(2)
# ваш код
Вывод: 3