'S.index(value) -> integer -- return first index of value.
Raises ValueError if the value is not present.'

def index(self, value):

    for (i, v) in enumerate(self):
        if (v == value):
            return i
    raise ValueError
