I'm stuck right know because I don't know how to obtain all the possible combinations within a list of lists. I'll give you an example so that you are able to understand my problem.
I have three lists within a list [["A","B","C"],["D","E","F","G],["H","I"]]. So from these I want to obtain all the combinations but at the same time keeping this structure. Thus, one result should be:
[["A","H","G"],["D","B","F","C"],["E","I"]]
Another:
[["I","F","C"],["D","E","A","B"],["H","I"]]
so in the end every letter must be in every position of every list. If I am not making it clear please tell me.
Thank you so much