3tuple
A 3-tuple, also known as a triple, is an ordered triple of three elements. In mathematics and computer science, a k-tuple is a sequence of k elements, where the order of elements is significant. A 3-tuple is written as (a, b, c) and is an element of the Cartesian product A × B × C, with a ∈ A, b ∈ B, c ∈ C.
Properties: The components can be any objects; repetition is allowed; two 3-tuples are equal if and only
In practical terms, 3-tuples model simple records or coordinates. Common uses include representing a point in
Examples across languages: in Python, t = (3, 'red', True) creates a three-element tuple; t[0] yields 3.
Related concepts include n-tuples, Cartesian products, and vectors. The 3-tuple is a fundamental construct for organizing