I have two lists:
first = ["one", "two", "three"]
second = ["five", "six", "seven"]
I want every single combination of those two lists but with elements from the first list always to be in front. I tried something like this:
for i in range(0, len(combined) + 1):
for subset in itertools.permutations(combined, i):
print('/'.join(subset))
Where "combined" was these two list combined but that gave me all of the possibilities and i just want those where elements from the first list are in the first place. For example:
["onefive","twosix","twofive"]
etc. Does anyone have an Idea how could I make this?