Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

tuple count in python

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

print(t.count(1))
 
PREVIOUS NEXT
Tagged: #tuple #count #python
ADD COMMENT
Topic
Name
9+3 =