Tuples Flashcards
1
Q
Count Method
.count
A
Counts how many times a piece of data appears inside the tuple.
t.count(‘a’)
2
Q
Index Method
.index
A
The first time the piece of data appears in the tuple
t.index(‘a’)
Count Method
.count
Counts how many times a piece of data appears inside the tuple.
t.count(‘a’)
Index Method
.index
The first time the piece of data appears in the tuple
t.index(‘a’)