Simple way to create possible case

Posted by bugbug on Stack Overflow See other posts from Stack Overflow or by bugbug
Published on 2010-03-29T05:24:04Z Indexed on 2010/03/29 5:33 UTC
Read the original article Hit count: 300

Filed under:
|
|
|
|

I have lists of data such as

a = [1,2,3,4]
b = ["a","b","c","d","e"]
c = ["001","002","003"]

And I want to create new another list that was mixed from all possible case of a,b,c like this

d = ["1a001","1a002","1a003",...,"4e003"]

Is there any module or method to generate d without write many for loop?

© Stack Overflow or respective owner

Related posts about python

Related posts about module