how to make a list of all possible combinations in python code example
Example 1: python get all combinations of list
itertools.combinations(iterable, r)
Example 2: how to get all possible combinations in python
all_combinations = [list(zip(each_permutation, list2)) for each_permutation in itertools.permutations(list1, len(list2))]