👉 A pattern is a regular sequence of elements that repeat in a given set. For example, if you have a set of numbers and you want to find patterns within them, you can create a list of all possible combinations of those elements. For instance, let's say we have the following numbers: 1, 2, 3, 4, 5. We can form multiple combinations by using different orders or repetitions of these numbers: - (1, 2) - (