AT
Size: a a a
AT
БГ
DY
A
a = ['1', '2', '3']
b = ['4', '5']
>>> ['41', '42', '43', '51', '52, '53'']
БГ
a = ['1', '2', '3']
b = ['4', '5']
>>> ['41', '42', '43', '51', '52, '53'']
ᅠ
a = ['1', '2', '3']
b = ['4', '5']
>>> ['41', '42', '43', '51', '52, '53'']
from itertools import permutations
БГ
from itertools import permutations
from operator import add
A
from itertools import permutations
K
БГ
list(map(add, permutations(a, b)))
AT
list(map(add, permutations(a, b)))
БГ
БГ
AT
AT
AT
БГ
py3
from functools import compose
Traceback (most recent call last):
File "2058788110/source.py", line 1, in <module>
from functools import compose
ImportError: cannot import name 'compose'
БГ
AT