Metody Python Tuple
Python má dvě vestavěné metody, které můžete použít na n-tice.
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 |
Zjistěte více o nicích v našem výukovém programu Python Tuples .