Get the cartesian product of a series of lists? How can I get the Cartesian product (every possible combination of values) from a group of lists? Input: somelists = [ [1, 2, 3], ['a', 'b'], [4, 5] ]... May 6, 2022 0 Comments