Python Get Index of Substring em Liasta
index = [idx for idx, s in enumerate(l) if 'tiger' in s][0]
Calm Crossbill
index = [idx for idx, s in enumerate(l) if 'tiger' in s][0]
def index_containing_substring(the_list, substring):
for i, s in enumerate(the_list):
if substring in s:
return i
return -1