+ 1

You’re working on a search engine. Watch your back Google! The given code takes a text and a word as input and passes them to

text = input() word = input() def search(text, word): if word in text: print("word found") else: print("word not found")

14th Apr 2022, 7:58 AM
Alabi Ayodele
Alabi Ayodele - avatar
7 Answers
+ 1
Beware of the letter's cases. You should output: 'W'ord 'F'ound not 'word found', if the word is there. And output 'W'ord not 'F'ound not 'word not found', if the word is not there
14th Apr 2022, 8:21 AM
NEZ
NEZ - avatar
0
Do you have a question?
14th Apr 2022, 8:01 AM
Chris Coder
Chris Coder - avatar
0
Yes
14th Apr 2022, 8:03 AM
Alabi Ayodele
Alabi Ayodele - avatar
0
You’re working on a search engine. Watch your back Google! The given code takes a text and a word as input and passes them to a function called search(). The search() function should return "Word found" if the word is present in the text, or "Word not found", if it’s not. Sample Input "This is awesome" "awesome" Sample Output Word found
14th Apr 2022, 8:03 AM
Alabi Ayodele
Alabi Ayodele - avatar
0
Thanks all it has been solved
14th Apr 2022, 9:43 AM
Alabi Ayodele
Alabi Ayodele - avatar
0
Error occurs bro
9th Aug 2022, 1:10 PM
Deva Virathan
Deva Virathan - avatar