+ 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")
7 RĂ©ponses
+ 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
0
Do you have a question?
0
Yes
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
0
Thanks all it has been solved
0
Error occurs bro