Possible Duplicate:
All combinations of a list of lists
I've been trying to use python to add two lists of strings together and I can't get it work with the different arrangements of for loops that I've tried. What I have is two lists and I want to make a third list from the other two, so that index[0] from list 1 has all of the indexes from list 2 added to it in turn (each being a separate entry in the new list), and then the same for index[1] from list1, and so on..
snippets1 = ["aka", "btb", "wktl"]
snippets2 = ["tltd", "rth", "pef"]
resultlist = ["akatltd", "akarth", "akapef", "btbtltd", "btbrth", "btbpef", "wktltltd", "wktlrth", "wktlpef"]
I know the answer is simple but no matter what I do I keep get something that doesn't work at all, or it adds snippets1[0] to snippets2[0], snippets1[1] to snippets2[1] and so on. Help please!