Question: a 1. Write a function findWord(). It takes two parameters. A string which represents a paragraph and string that represents a word to find in

a 1. Write a function findWord(). It takes two parameters. A string which represents a paragraph and string that represents a word to find in the paragraph. Note, let's say you have a word "anything and you search for "any", it should not count anything. In other words, it has to be the exact word not a part of a word. Case must be ignored. a >>> findWord ('Is this here', 'here') True >>> findWord ('Nothing is hidden', 'nothing'). True >>> findWord ('Did you find the word', 'word') True >>> findWord ('I cant hear what you are hearing', 'HEAR') True >>> findWord ('What are you hearing','hear') False >>> findWord ('I LIKE THIS PROBLEM', 'like') True + 1 1. Write a function findWord(). It takes two parameters. A string which represents a paragraph and string that represents a word to find in the paragraph. Note, let's say you have a word "anything" and you search for "any", it should not count anything. In other words, it has to be the exact word not a part of a word. Case must be ignored. >>> findWord ('Is this here','here') True >>> findWord ('Nothing in hidden', 'nothing'), True >>> findWord ('Did you find the word', 'word') True >>> findWord ('I cant hear what you are hearing', 'HEAR') True >>> findWord ('What are you hearing', 'hear') False >>> findWord ('I LIKE THIS PROBLEM', 'like' True
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
