0
Python Beginner
what is the problem here and how can i fix it text = input() word = input() def search(text, word): if word in text: print("Word found") else: print("Word not found") print(search(text, word))
2 Respuestas
+ 7
Your function does not return anything. Either replace all print() int the function with "return" or remove the very last print()
+ 7
Elif Özhan ,
https://code.sololearn.com/cqTbh687Pm7g/?ref=app
Since you used print in the last line of your code...it's better return the values in conditions...