how to find index of a substring in a string in python code example
Example: python get index of substring in liast
def index_containing_substring(the_list, substring):
for i, s in enumerate(the_list):
if substring in s:
return i
return -1