Exerpad
🔥0
0 XP
Lv.1 Beginner
Log In

Word Search

Read a sentence and a search word. Print the position where the word first appears (using .find()), and how many times it appears (using .count()).

If the word is not found, .find() returns -1.

Example:

Input:

text
banana banana banana split
banana

Output:

text
0
3

💡 Hints

?Hint 1
🔒Hint 2
🔒Hint 3
python