0
Why is wrong?
def search(text, word): if word in text: return print ("Word found") text = input() word = input() print(search(text, word)) Wrong output: Word found None
1 Answer
0
return "Word found" #just use it, Without print.
Function print don't return anything..
https://www.sololearn.com/discuss/3057041/?ref=app