Skip to content
Skip to navigation
PyLabs
Courses
Lab
Quiz
Leaderboard
Playground
More
/
Sign in
Start free
Search the course
Learn
Courses
Lab
Quiz
Leaderboard
Playground
More
Reference
Cheat sheets
Review
Flashcards
Docs
Start free
Sign in
Loading reference library…
Reference
Tuple Methods
Reference group
Tuple Methods
The two built-in ways to search and count values in an immutable tuple. 2 entries.
All reference groups
tuple
2 entries
count()
tuple.count(value)
Count the total occurrences of a specific item in a tuple.
index()
tuple.index(value, start=0, stop=len(tuple))
Find the zero-based index of the first occurrence of an item.