Keywords detector ⅠⅠ
Given a string and a keyword, return the keyword and its index as shown in the examples.
Sample Code:
def wordFinder(strs,str):
# Enter your logic here...
Examples:
Input: 'What did the ocean say to the beach','beach'
Output: 'beach found at index 7.'
Explanation: The element 'beach' has an index value of 7.
Input: 'Nothing, it just waved','🐳'
Output: '🐳 not found.'
Explanation: The element '🐳' was not found in the input string.