Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

tuple methods in python

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

print(t.count(1))
print(t.index(5))
Source by codefreelance.net #
 
PREVIOUS NEXT
Tagged: #tuple #methods #python
ADD COMMENT
Topic
Name
9+5 =