Compute their Cartesian product, AxB of two lists. Each list has no more than 10 numbers.
For example, if the user supplies the two input lists:
B = [3,4]
then the Cartesian product output should be:
AxB = [(1,3),(1,4),(2,3).(2,4)]
Submit the text files containing your Python code
Answer rating: 100% (QA)
To compute the Cartesian product of two lists in Python you can use the itertools product function HView the full answer