Core Python
June 3, 2026 1 min read

A Comprehensive Overview of Tuple Operations and Methods

HS
HEMANT SINGH
Technical Writer & Educator

Tuple is used to store multiple values. tuple created using small brackets ()

 

t= (1, 2, 3)

 

Tuple are immutable.

 

Print tuple

t=(1,2,3)
print(t)

 

Tuple Indexing

t=(1,2,3)
print(t[0]) # 1

 

Tuple splitting 

t=(1,2,3)
print( t[0:2] ) # (1, 2)

 

Tuple looping

t=(1, 2, 3)
for item in t:
     print(item)

Tuple methods

index(item)

Return index of given item from a tuple

t=(1,2,3)
print(t.index(1)) # 0

count(item)

Return number of item of specified item from a tuple

t=(1,2,3,1)
print(t.count(1)) # 2