Tuples are immutable ordered and indexed collections of objects. Tuples of two or more items are formed by comma-separated lists of expressions. A tuple of one item (a ‘singleton’) can be formed by affixing a comma to an expression (an expression by itself does not create a tuple, since parentheses must be usable for grouping of expressions). An empty tuple can be formed by an empty pair of parentheses.
- Returns an int type specifying number of elements in the collection.
- Returns the smallest item from a collection.
- Returns the largest item in an iterable or the largest of two or more arguments.
- Compares two objects and returns an integer according to the outcome.
- Returns a total of the items contained in the iterable object.
- Returns a sorted list from the iterable.
- Returns a reverse iterator over a sequence.
- Returns a Boolean value that indicates whether the collection contains only values that evaluate to True.
- Returns a Boolean value that indicates whether the collection contains any values that evaluate to True.
- Returns an enumerate object.
- Returns a list of tuples, where the i-th tuple contains the i-th element from each of the argument sequences or iterables.