Tuples Flashcards

1
Q

Count Method

.count

A

Counts how many times a piece of data appears inside the tuple.

t.count(‘a’)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Index Method

.index

A

The first time the piece of data appears in the tuple

t.index(‘a’)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly