In mathematics, a tuple or a sequence is a list of objects arranged in an order. Such a list may have repeated objects but the order is more important. Such sequences or tuples are denoted as ( t1, t2, t3, …., tn ) where tn is the nth element of the list. Below are a few examples of tuples.
- (x, y)
- (1, 2, 3, 4, 5)
- (1, 4, 9, 16)
- (a, e, f, j, k)
- (red, blue, green)
- (+, -, *, ×, ÷, ?)
Please note ☞ A tuple with n elements is called an n-tuple. A tuple is written by enlisting the elements in the required order and enclosed within parentheses. The elements are separated by a comma. (1, 5, 9, 2, 3, 34) is a 6-tuple (blue, red, green, green, blue) is a 5-tuple |
0 Comments