Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

tuple index in python

# Creating a tuple using ()
t = (1, 2, 4, 5, 4, 1, 2,1 ,1)

print(t.index(5))
 
PREVIOUS NEXT
Tagged: #tuple #index #python
ADD COMMENT
Topic
Name
4+6 =