In this challenge we will find the cartesian product of 2 sets of numbers:
What is cartesian product?
It is the product of two sets: the product of set X and set Y is the set that contains all ordered pairs (x,y) for which x belongs to X and y belongs to Y.
We will use Pythons itertools module and import its product method to get its cartesian product.
The task:
The solution:

No comments:
Post a Comment