+ 1
Hey guys, can someone tell whats wrong in my code? Why is it outputting 'non' at the end?
text = input() word = input() def search(text,word): if word in text: print("Word found") else: print("Word not found") print(search(text,word))
1 Resposta
+ 7
Just use
search(text, word)
instead of print(search(text, word))
Your function not returning anything so defaultly it return none.