59.2k views
1 vote
Iven some words say ["hi", "bye", "grr"] find them in this sentence "h ilol howareyou" but make sure they have a space in between so the only word found here is hi -> "h i". Also if there is a '!' in the sentence that can count as any word. So if the sentence was "h !lol howareyou" then that counts as hi -> "h !" is equivalent.

Return back the number of words found. In the above case just return 1

User Kelvt
by
7.3k points

1 Answer

4 votes

Answer:

3

Step-by-step explanation:

User Tim Mutton
by
8.8k points

Related questions