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)
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:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers