Question: Cartesian Product generator Write a python program that will generate the Cartesian Product of two sets that are given to it . The program must

Cartesian Product generator
Write a python program that will generate the Cartesian Product of two sets that are given to it. The program must be able to create the Cartesian Product regardless of the size of the 2 sets it is given. These sets can be hard coded into the program, they do not have to be taken from user input.
The program must output the original sets, each on a separate line.
The program will then output the cartesian product resulting set. This should be done manually through loops, don't use any prepackaged functions to complete the cartesian product. After the output of the sets it must output the total number of set elements it generated for the Cartesian Product.
After the number of sets it should output a paragraph of text explaining some good use case scenarios for Cartesian Products.
Submit the python file to this assignment.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!