On python, I can use the combinations
function from itertools
to get all the possible couples in a list. But is there a way to get all the combinations possible taking one element in a list and the other in another list?
l1 = [1,2,3]
l2 = [4,5]
Is there a function that would return
(1,4),(1,5),(2,4),(2,5),(3,4),(3,5)