parameters: (self, value)
docstring: S.index(value) -> integer -- return first index of value.
             Raises ValueError if the value is not present.
docstring_summary: S.index(value) -> integer -- return first index of value.
             Raises ValueError if the value is not present.
docstring_tokens: S . index ( value ) - > integer -- return first index of value . Raises ValueError if the value is not present .
function: def index(self, value):
          '''S.index(value) -> integer -- return first index of value.
             Raises ValueError if the value is not present.
          '''
          for i, v in enumerate(self):
              if v == value:
                  return i
          raise ValueError
function_tokens: def index ( self , value ) : for i , v in enumerate ( self ) : if v == value : return i raise ValueError