Is there an efficient method of limiting sets of unique combinations of two lists in Python?
Is there an efficient method of limiting sets of unique combinations of two lists in Python? Question: I have the following code to generate each set of unique combinations between two lists. Alternatively phrased, all possible sets of matches of targets from a list of sources. from itertools import permutations def combos(sources, targets): assert len(sources) …