Q. What is the output of the following?
Code:
print('Python'.find('th'))
β
Correct Answer: (A)
2
Explanation: find() returns the index of the first occurrence of the substring.