Skip to content

Commit 713699a

Browse files
authored
Create 2942.py
1 parent 32c5d05 commit 713699a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

python3/2942.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
class Solution:
2+
def findWordsContaining(self, words: List[str], x: str) -> List[int]:
3+
res = []
4+
for i, word in enumerate(words):
5+
if x in word:
6+
res.append(i)
7+
return res

0 commit comments

Comments
 (0)