Python Tuple Methods

In Python, tuples are immutables. Meaning, you cannot change items of a tuple once it is assigned. There are only two tuple methods count() and index() that a tuple object can call.

Python Tuple count()

returns occurrences of element in a tuple

Python Tuple index()

returns smallest index of element in tuple

Python any()

Checks if any Element of an Iterable is True

Python all()

returns true when all elements in iterable is true

Python ascii()

Returns String Containing Printable Representation

Python bool()

Converts a Value to Boolean

Python enumerate()

Returns an Enumerate Object

Python filter()

constructs iterator from elements which are true

Python iter()

returns an iterator

Python len()

Returns Length of an Object

Python max()

returns the largest item

Python min()

returns the smallest value

Python map()

Applies Function and Returns a List

Python reversed()

returns the reversed iterator of a sequence

Python slice()

returns a slice object

Python sorted()

returns a sorted list from the given iterable

Python sum()

Adds items of an Iterable

Python tuple()

Returns a tuple

Python zip()

Returns an iterator of tuples