Python Programming - Data Types - Discussion

Discussion Forum : Data Types - General Questions (Q.No. 54)
54.
What will be the result of the following code snippet?
my_string = "Python"
result = my_string.find("th")
print(result)
2
3
th
True
Answer: Option
Explanation:
The find() method returns the index of the first occurrence of the specified substring.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.