Question

In Python, how to search for sub string in a string?


Annonce
Ad

Answer

string.find('sub string')
return the index if the sub string is found, -1 otherwise.


[source]
# ID Query