Metode Tuple Python
Python memiliki dua metode bawaan yang dapat Anda gunakan pada tupel.
Method | Description |
---|---|
count() | Returns the number of times a specified value occurs in a tuple |
index() | Searches the tuple for a specified value and returns the position of where it was found |
Pelajari lebih lanjut tentang tupel di Tutorial Tuples Python kami .