On Mar 12, 10:18 am, Gerdus van Zyl <[EMAIL PROTECTED]> wrote:
> I have a list that looks like this:
> [['3'], ['9', '1'], ['5'], ['4'], ['2', '5', '8']]
>
> how can I get all the combinations thereof that looks like as follows:
> 3,9,5,4,2
> 3,1,5,4,2
> 3,9,5,4,5
> 3,1,5,4,5
> etc.
>
> Thank You,
> Gerdus

Search for "cartesian product" recipes.

George
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to