How can I do this? I could use "for" cycles and "if...else" but with larger lists it gets complicated

Is there some simple solution that I can use?

I hope you could help me

If you are trying to produce every possible combination that includes only one item from each of the first three lists then you could do this pretty easily by nesting for loops... you would need the same number of loops as the number of initial lists.

Or you could just use the product function in the itertools module. It does exactlywhat (I think) you want. It is more general, meaning that you do not need to changethe code with yet-another-nested loop for each new list: