class MyList:
def __init__(self, data):
self.a = data
def __add__(self, *other):
for a in other:
b = []
b.append(a)
return self.a + b
b = [1,2,3]
a = MyList([1,2,3])
print(a + b)
[1, 2, 3, [1, 2, 3]]
a = [1,2,3]
b = [1,2,3]
c = a + b
print(c)
#Вывод
[1,2,3,1,2,3]