Question: # This function will search the given text in order to find a given word def is _ word _ there ( text , word

# This function will search the given text in order to find a given word
def is_word_there(text, word):
"""
What it takes?
a text to be searched
a word to be searched within a text
what it does?
searches if a word occurs in a text
What it returns?
returns 1 if word is in the text.
returns -1 if word is not in the text
"""
# your code goes in here
return

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!