Function
string.index

Signature

index(s, *args)

Documentation String

index(s, sub [,start [,end]]) -> int

Like find but raises ValueError when the substring is not found.