Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python Tuple Methods

my_tuple = ('a', 'p', 'p', 'l', 'e',)

print(my_tuple.count('p'))  # Output: 2
print(my_tuple.index('l'))  # Output: 3
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #Python #Tuple #Methods
ADD COMMENT
Topic
Name
5+3 =