index_of method

index_of

Determines the index of a specific portion in collection.

Returns

The index of item if found in the collection; otherwise, -1.

def index_of(self, item):
    ...
ParameterTypeDescription
itemIPortionThe portion to locate in the collection.

See Also