0
[SOLVED] What is the problem here? Nearly there.
I did this for the Search Engine(below)coach code solution but it keeps on returning:- "Word Found" "None" What is happening? My attempt:- text = input() word = input() def search(text,word): if word in text: print("Word found") else: print("Word not found") print(search(text, word))
4 Respostas
+ 3
Your function is not returning anything, thus returning NONE which what your last print() is printing. The first output is because of print() in the function itself
there are a lot of ways to fix it
Here's one of them👇
https://code.sololearn.com/cFnb6IdHp8un/?ref=app
+ 1
Thank you Arsenic 👍