The method _______ returns the index of the specified value in the tuple.

  • find()
  • index()
  • locate()
  • search()
The index() method is used to find the index of a specified value within a tuple. It returns the first occurrence of the value's index. If the value is not found, it raises a ValueError.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *