intent: Finding the index of an item given a list containing it in Python
rewritten_intent: finding the index of an item 'foo' given a list `['foo', 'bar', 'baz']` containing it
snippet: [i for i, j in enumerate(['foo', 'bar', 'baz']) if j == 'foo']