**What is Cartesian product with example:** The **Cartesian product** is a mathematical operation that takes two sets and returns a set of all possible ordered pairs which contains one element from each set.

For example, if Set A = {1, 2, 3} and Set B = {a, b}, the **Cartesian product** of A and B is the set {(1, a), (1, b), (2, a), (2, b), (3, a), (3, b)}.