How to find Index of Substring in a Python String?

preview_player
Показать описание
To find the index of substring 'y' in the string 'x', you can use the string find() method. Call find method on the string ‘x’, and pass the substring, ‘y’, as argument. The method returns an integer value, representing the position of the substring, in the string.

References
=========
Python - String find() method

Python Tutorial
Рекомендации по теме