Vidyalelo
Python · Q7

MCQs for Python Strings: Exam

Programming · Python · question 7

Q7

Which of the following methods is used to find the index of the first occurrence of a substring in a string?

A.
index()
B.
find()
Answer
C.
search()
D.
locate()

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board