I\'m trying to figure out the best way to merge two lists into all possible combinations. So, if I start with two lists like this:
list1 = [1, 2] list2 = [3,
Edited my code to give you your desired output.
list1 = [1,2] list2 = [3,4] combined = [] for a in list1: new_list = [] for b in list2: new_list.append([a, b]) combined.append(new_list) print combined