1# Example usage:
2your_list = ['The answer to', 'the ultimate question', 'of life',
3 'the universe', 'and everything', 'is 42']
4
5[idx for idx, elem in enumerate(your_list) if 'universe' in elem][0]
6--> 3 # The 0-based index of the first list element containing "universe"