Final answer:
The correct answer is index_of. This string method is used to find the lowest index in a string where a specified substring is found.
Step-by-step explanation:
The correct answer to this question is index_of. This string method is used to find the lowest index in a string where a specified substring is found. The syntax for using this method is string.index_of(substring).
For example, if we have the string 'Hello World!' and we want to find the index of the substring 'World', we would use the index_of method like this: 'Hello World!'.index_of('World'), which would return the value 6.
Using the index_of method allows us to easily locate the position of a specific substring within a larger string.
The string method that returns the lowest index in the string where a specified substring is found is find. When you use the find() method in many programming languages like Python, it searches the string for a specified value and returns the position of where it was found, which is the lowest index at which the substring appears in the text. For instance, if we have the string 'Hello World' and search for the substring 'lo', find() will return 3, because 'lo' starts at index 3. If the substring is not found, the method typically returns -1.