Question: Python Programming Discrete Math Write the Python function that implements Cartesian product, with the following docstring. You should simulate a Cartesian product as a list
Python Programming
Discrete Math
Write the Python function that implements Cartesian product, with the following docstring. You should simulate a Cartesian product as a list of 2-tuples. (Submit as an additional Python script, with a couple of function calls on test data at the end.) Show all parts of the solution. Thanks

def cartesianProduct (A, B): "" " Cartesian product of two sets of integers Using a list to represent a set. Params: A (int list) B (int list) Returns: (list of 2-tuples) A x B
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
