Métodos de tupla de Python
Python tiene dos métodos integrados que puede usar en tuplas.
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 |
Obtenga más información sobre las tuplas en nuestro Tutorial de tuplas de Python .