Greeting from a real newbie,<br><br>I think that their might exist an easy way, in Python, for my list permutation issue. I need to be able to permute all elements from across several lists, while ensuring order is maintained across the lists.
<br><br>For example: list1=[a b]&nbsp;&nbsp; list2=[c d e]&nbsp; list3=[f]&nbsp; list4=[g h]<br><br>permute(list1, list2, list3, list4) = <br><br>[ [a c f g], [a c f h], [a d f g], [a d f h], [a e f g], [a e f h],<br>&nbsp; [b c f g], [b c f h], [b d f g], [b d f h], [b e f g], [b e f h] ]
<br><br>Of course, the number of the lists is arbitrary and the size of each list is also arbitrary.<br><br>Any help would be greatly appreciated.<br><br>thanks,<br>Bertha<br>