Error detection

Report a typo

Suppose we are looking for a word in a sentence. We use the index() method to do this. What error will we get if we can't find the word in the sentence?

Enter a short text
___

Create a free account to access the full topic