Made easy with itertools The itertools.product function returns the Cartesian product of two or more iterables. What is the Cartesian product? Suppose we have two sets of values, for example: a is the set of values (1, 2, 3). b is the set of values ("a", "b", "c", "d"). Suppose we form a pair of…