- 1

search engine project

text = input() word = input() def search(text, word ): if word in text: print("Word found") else: print("Word not found") print(search(text, word)) please somebody help me with this code error

6th May 2021, 2:39 PM
Tolosa Gemechu
Tolosa Gemechu - avatar
1 Answer
+ 9
Just do a small change remove that print from last statement. text = input() word = input() def search(text, word): if word in text: print('Word found') else: print("Word not found") search(text, word)
6th May 2021, 2:44 PM
KǟrÉšsÉŠmǟ ❄
KǟrÉšsÉŠmǟ ❄ - avatar