I have a list that contains 2 list:
[['JA@lazo.es', 'HI@lazo.es'], ['PO@jordi.es', 'GA@jordi.es'], '100', '1']
How I can combine all the possible combinations between the elements of the first list (position 0) and the second list (position 1) individually and at the same time create a new list with the elements that are not in those two positions of the original list.
So the result would be like:
[
['HI@lazo.es','PO@jordi.es','100', '1'],
['HI@lazo.es','GA@jordi.es','100', '1'],
['JA@lazo.es','PO@jordi.es','100', '1'],
['JA@lazo.es', 'GA@jordi.es','100', '1']
]
I can assume that the lists within the list will always be at position 0 and 1 but there could be multiple elements.
Thanks!