Updated: 2024-03-12 1 min read On This Pageclass Solution: def findWordsContaining(self, words: List[str], x: str) -> List[int]: return [i for i, w in enumerate(words) if x in w]