Question: Which Python statement can be used to find the index of the first occurrence of string s2 in string s1? a. n = s2.find(s1) b.
Which Python statement can be used to find the index of the first occurrence of string s2 in string s1?
a. n = s2.find(s1)
b. n = s1.find(s2)
c. n = s1.position(s2)
d. n = s1.count(s2)
e. None of the others
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
