+ 1
Please why does none attach to my results
def search (text, word ): if word in text: print ("Word found") else: print ("Word not found") text = input() word = input() print(search(text, word
3 odpowiedzi
+ 2
Thank you very much
+ 2
Thank you BroFar..
+ 1
Dixon Afreh Frimpong
inorder for the print to do
print(search(text, word))
use the word return in place of the print statements you have in your define
def search(text, word):
if word in text: return "Word found"
else: return "Word not found"
text = input()
word = input()
print(search(text, word))