Fork Python 4 Question 6

Last Updated :
Discuss
Comments

What is the purpose of the find() function in Python strings?
 

It returns the position of the last occurrence of a substring within a string.

It returns true if the string begins with a specified prefix.

It returns the position of the first occurrence of a substring within a string.

It returns true if all the letters in the string are lowercased.

Share your thoughts in the comments