I need to make a combination of a list of lists, selecting n elements o each list for example
a=[[1,2,3,4,5],[6,7,8,9,10]]
n1=2
n2=3
so my result can be something like this:
r=[[1,2,6,7,8],[1,2,6,7,9],...,[4,5,7,8,9],[4,5,8,9,10]]
Is there any clean way to do it? Or should I have to break my lists into smaller sizes and use for loops to call the itertools?