search_string

search_string(text, key)

Is the key word present in the sentence?

Parameters

text: str Text selected to apply transformation

key: str Word to search within the phrase

Examples:

sentence="Happy Mothers day to all Moms"
search_string(sentence,'day')
    >>> True