English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Python basic tutorial

Python flow control

Python Functions

Python Data Types

Python file operations

Python objects and classes

Python date and time

Advanced knowledge of Python

Python reference manual

Python tuple methods

In Python, tuples are immutable. This means that once a tuple is assigned, you cannot change its items. Tuple objects can only call two tuple methods, count() and index().

MethodDescription
count()Return the number of times the specified value appears in the tuple.
index()Search for the specified value in the tuple and return its position if found.

In our Python tuple tutorial Learn more about tuples in Python.