. Advertisement .

..3..

. Advertisement .

..4..

How to get all possible combinations in python? Can you give me some suggestions?

Here is a case study for you

`all_combinations = [list(zip(each_permutation, list2)) for each_permutation in itertools.permutations(list1, len(list2))]`

There is a simple solution