Есть 3 списка такого плана:"[191717, 191718]","EH3105928,ISCAR 3105081","3,1"
def f(*data):
return tuple(', '.join(map(str.strip, t)) for t in zip(
*[s.lstrip('[').rstrip(']').split(',') for s in data]))
print(f("[191717, 191718]", "EH3105928,ISCAR 3105081", "3,1"))
def partition(cap, lim):
if cap <= lim:
yield (cap,)
for head in range(min(cap - 1, lim), 0, -1):
for tail in partition(cap - head, head):
yield (head,) + tail
for p in partition(5, 5):
print('+'.join(map(str, p)))